diff --git a/changelog/unreleased/fix-spaceid-in-metaresponse.md b/changelog/unreleased/fix-spaceid-in-metaresponse.md new file mode 100644 index 0000000000..c41fcfbc02 --- /dev/null +++ b/changelog/unreleased/fix-spaceid-in-metaresponse.md @@ -0,0 +1,5 @@ +Bugfix: Fix spaceID in meta endpoint response + +When doing a `PROPFIND` on the meta endpoint the spaceID would not be rendered correctly. That is fixed now + +https://github.com/cs3org/reva/pull/4341 diff --git a/internal/http/services/owncloud/ocdav/meta.go b/internal/http/services/owncloud/ocdav/meta.go index 09e54bfa25..9cd939057e 100644 --- a/internal/http/services/owncloud/ocdav/meta.go +++ b/internal/http/services/owncloud/ocdav/meta.go @@ -158,7 +158,7 @@ func (h *MetaHandler) handlePathForUser(w http.ResponseWriter, r *http.Request, 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()), + prop.Escaped("oc:spaceid", storagespace.FormatStorageID(rid.GetStorageId(), rid.GetSpaceId())), }, } baseURI := ctx.Value(net.CtxKeyBaseURI).(string)