mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
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:
@@ -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
|
||||
@@ -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()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user