diff --git a/changelog/unreleased/meta-path-for-user.md b/changelog/unreleased/meta-path-for-user.md index 306e7baa3f..372d64d686 100644 --- a/changelog/unreleased/meta-path-for-user.md +++ b/changelog/unreleased/meta-path-for-user.md @@ -3,4 +3,5 @@ Enhancement: Meta path for user We've added support for requesting the `meta-path-for-user` via a propfind to the `dav/meta/` endpoint. https://github.com/cs3org/reva/pull/2741 +https://github.com/cs3org/reva/pull/2793 https://doc.owncloud.com/server/next/developer_manual/webdav_api/meta.html diff --git a/internal/http/services/owncloud/ocdav/meta.go b/internal/http/services/owncloud/ocdav/meta.go index ac2fe06288..820d808a60 100644 --- a/internal/http/services/owncloud/ocdav/meta.go +++ b/internal/http/services/owncloud/ocdav/meta.go @@ -142,6 +142,9 @@ func (h *MetaHandler) handlePathForUser(w http.ResponseWriter, r *http.Request, Status: "HTTP/1.1 200 OK", Prop: []prop.PropertyXML{ prop.Escaped("oc:meta-path-for-user", pathRes.Path), + prop.Escaped("oc:id", id), + prop.Escaped("oc:fileid", id), + prop.Escaped("oc:spaceid", rid.GetStorageId()), }, } baseURI := ctx.Value(net.CtxKeyBaseURI).(string)