From dfa6eb4ed401bc28e21a653afa6e1edecdf0f0b1 Mon Sep 17 00:00:00 2001 From: Roman Perekhod Date: Thu, 18 Jan 2024 13:14:10 +0100 Subject: [PATCH] fix the resource name --- changelog/unreleased/fix-resource-name.md | 6 ++++++ .../services/sharesstorageprovider/sharesstorageprovider.go | 1 + 2 files changed, 7 insertions(+) create mode 100644 changelog/unreleased/fix-resource-name.md diff --git a/changelog/unreleased/fix-resource-name.md b/changelog/unreleased/fix-resource-name.md new file mode 100644 index 0000000000..888368cce2 --- /dev/null +++ b/changelog/unreleased/fix-resource-name.md @@ -0,0 +1,6 @@ +Bugfix: Fix the resource name + +We fixed a problem where after renaming resource as sharer the receiver see a new name. + +https://github.com/cs3org/reva/pull/4463 +https://github.com/owncloud/ocis/issues/8242 diff --git a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go index 012ee4bcef..432bcb15ce 100644 --- a/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go +++ b/internal/grpc/services/sharesstorageprovider/sharesstorageprovider.go @@ -859,6 +859,7 @@ func (s *service) ListContainer(ctx context.Context, req *provider.ListContainer OpaqueId: share.Share.Id.OpaqueId, } info.Path = filepath.Base(share.MountPoint.Path) + info.Name = info.Path infos = append(infos, info) }