Merge pull request #12028 from owncloud/feat/report-spaceid

feat(webdav): [OCISDEV-602] add spaceid to report
This commit is contained in:
Lukas Hirt authored and GitHub committed 2026-02-17 12:07:49 +01:00
commit 23517e12a2
2 files changed
+8

No files matched your search

@@ -0,0 +1,5 @@
Enhancement: Add spaceid to REPORT
Added the `spaceid` to the REPORT responses. This is aligning the `REPORT` method with the `PROPFIND` method.
https://github.com/owncloud/ocis/pull/12028
+3
View File
@@ -256,6 +256,9 @@ func matchToPropResponse(match *searchmsg.Match, hrefPrefix string) (*propfind.R
propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:permissions", match.Entity.Permissions))
propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:highlights", match.Entity.Highlights))
spaceId := storagespace.FormatStorageID(match.Entity.Id.StorageId, match.Entity.Id.SpaceId)
propstatOK.Prop = appendStringProp(propstatOK.Prop, "oc:spaceid", &spaceId)
t := tags.New(match.Entity.Tags...)
propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:tags", t.AsList()))