Skip to content

Commit

Permalink
return fileID and storageID on meta endpoint (#2793)
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar authored Apr 29, 2022
1 parent b061a45 commit 599bdac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/unreleased/meta-path-for-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<id>` 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
3 changes: 3 additions & 0 deletions internal/http/services/owncloud/ocdav/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 599bdac

Please sign in to comment.