From 164f8650da2c837af204fc47b58b74d1438cbf18 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Wed, 8 May 2024 08:06:27 +0200 Subject: [PATCH] fix: use getters for protobuf types --- services/webdav/pkg/service/v0/search.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/webdav/pkg/service/v0/search.go b/services/webdav/pkg/service/v0/search.go index cf67032f2..a5818f88d 100644 --- a/services/webdav/pkg/service/v0/search.go +++ b/services/webdav/pkg/service/v0/search.go @@ -186,9 +186,9 @@ func matchToPropResponse(ctx context.Context, match *searchmsg.Match) (*propfind propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:shareid", match.Entity.Ref.ResourceId.OpaqueId)) propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:shareroot", match.Entity.ShareRootName)) propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:remote-item-id", storagespace.FormatResourceID(provider.ResourceId{ - StorageId: match.Entity.RemoteItemId.StorageId, - SpaceId: match.Entity.RemoteItemId.SpaceId, - OpaqueId: match.Entity.RemoteItemId.OpaqueId, + StorageId: match.Entity.GetRemoteItemId().GetStorageId(), + SpaceId: match.Entity.GetRemoteItemId().GetSpaceId(), + OpaqueId: match.Entity.GetRemoteItemId().GetOpaqueId(), }))) } propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:name", match.Entity.Name))