feat(webdav): [OCISDEV-602] add spaceid to report

Added the `spaceid` to the REPORT responses. This is aligning the
`REPORT` method with the `PROPFIND` method.
This commit is contained in:
Lukas Hirt
2026-02-17 11:25:42 +01:00
parent ec6412a882
commit 11e013d080
2 changed files with 8 additions and 0 deletions

View File

@@ -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

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:permissions", match.Entity.Permissions))
propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:highlights", match.Entity.Highlights)) 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...) t := tags.New(match.Entity.Tags...)
propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:tags", t.AsList())) propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:tags", t.AsList()))