From 285c52e1c1b8f762bedadf843dafda154061a368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 20 Jun 2023 16:48:19 +0200 Subject: [PATCH] Return storageprovider id in space root info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- changelog/unreleased/fix-propfind-root-id.md | 5 +++++ internal/grpc/services/storageprovider/storageprovider.go | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 changelog/unreleased/fix-propfind-root-id.md diff --git a/changelog/unreleased/fix-propfind-root-id.md b/changelog/unreleased/fix-propfind-root-id.md new file mode 100644 index 0000000000..92607f539a --- /dev/null +++ b/changelog/unreleased/fix-propfind-root-id.md @@ -0,0 +1,5 @@ +Bugfix: Fix propfind root id + +decomposedfs now returns the storageprovider id in the root info when listing spaces + +https://github.com/cs3org/reva/pull/4000 diff --git a/internal/grpc/services/storageprovider/storageprovider.go b/internal/grpc/services/storageprovider/storageprovider.go index 872105788e..6a48b1bd40 100644 --- a/internal/grpc/services/storageprovider/storageprovider.go +++ b/internal/grpc/services/storageprovider/storageprovider.go @@ -545,6 +545,7 @@ func (s *Service) CreateStorageSpace(ctx context.Context, req *provider.CreateSt } s.addMissingStorageProviderID(resp.GetStorageSpace().GetRoot(), resp.GetStorageSpace().GetId()) + s.addMissingStorageProviderID(resp.GetStorageSpace().GetRootInfo().GetId(), nil) return resp, nil } @@ -589,6 +590,7 @@ func (s *Service) ListStorageSpaces(ctx context.Context, req *provider.ListStora } s.addMissingStorageProviderID(sp.GetRoot(), sp.GetId()) + s.addMissingStorageProviderID(sp.GetRootInfo().GetId(), nil) } return &provider.ListStorageSpacesResponse{ @@ -608,6 +610,7 @@ func (s *Service) UpdateStorageSpace(ctx context.Context, req *provider.UpdateSt return nil, err } s.addMissingStorageProviderID(res.GetStorageSpace().GetRoot(), res.GetStorageSpace().GetId()) + s.addMissingStorageProviderID(res.GetStorageSpace().GetRootInfo().GetId(), nil) return res, nil }