Skip to content

Commit

Permalink
Merge pull request #4341 from kobergj/MetaResponseSpaceID
Browse files Browse the repository at this point in the history
Fix SpaceID in meta response
  • Loading branch information
2403905 authored Nov 15, 2023
2 parents d3790d2 + 82538a0 commit 558f619
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-spaceid-in-metaresponse.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 558f619

Please sign in to comment.