Merge pull request #4859 from owncloud/received-share-path

fix shareroot path in REPORT responses
This commit is contained in:
David Christofas
2022-10-20 13:56:04 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
Bugfix: Fix the shareroot path in REPORT responses
Fixed the shareroot path in REPORT responses. Before this change the attribute leaked part of the folder tree of the sharer.
https://github.com/owncloud/ocis/pull/4859
https://github.com/owncloud/ocis/issues/4796

View File

@@ -202,7 +202,8 @@ func (p *Provider) Search(ctx context.Context, req *searchsvc.SearchRequest) (*s
SpaceId: spid,
OpaqueId: oid,
}
rootName = space.GetRootInfo().GetPath()
rootName = filepath.Join("/", filepath.Base(gpRes.GetPath()))
permissions = space.GetRootInfo().GetPermissionSet()
p.logger.Debug().Interface("grantSpace", space).Interface("mountpointRootId", mountpointRootID).Msg("searching a grant")
case "personal":