mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-07 04:40:05 -06:00
fix shareroot path in REPORT responses
This commit is contained in:
6
changelog/unreleased/received-share-path.md
Normal file
6
changelog/unreleased/received-share-path.md
Normal 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
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user