From 11e013d080460d63cc0981105039027100efa715 Mon Sep 17 00:00:00 2001 From: Lukas Hirt Date: Tue, 17 Feb 2026 11:25:42 +0100 Subject: [PATCH] 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. --- changelog/unreleased/enhancement-add-spaceid-to-report.md | 5 +++++ services/webdav/pkg/service/v0/search.go | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 changelog/unreleased/enhancement-add-spaceid-to-report.md diff --git a/changelog/unreleased/enhancement-add-spaceid-to-report.md b/changelog/unreleased/enhancement-add-spaceid-to-report.md new file mode 100644 index 00000000000..c4d3763ab49 --- /dev/null +++ b/changelog/unreleased/enhancement-add-spaceid-to-report.md @@ -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 diff --git a/services/webdav/pkg/service/v0/search.go b/services/webdav/pkg/service/v0/search.go index e99acb02596..8eb32a73897 100644 --- a/services/webdav/pkg/service/v0/search.go +++ b/services/webdav/pkg/service/v0/search.go @@ -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()))