Skip to content

Commit

Permalink
fix shareroot path in REPORT responses
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Oct 20, 2022
1 parent cccb190 commit bbcbf69
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/received-share-path.md
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion services/search/pkg/search/provider/searchprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit bbcbf69

Please sign in to comment.