Skip to content

Commit

Permalink
add rootinfo to storage space
Browse files Browse the repository at this point in the history
Signed-off-by: jkoberg <jkoberg@owncloud.com>
  • Loading branch information
kobergj committed Sep 6, 2022
1 parent 560ae0d commit 53b778d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/add-rootinfo-to-storagespace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Adds the rootinfo to storage spaces

The sympton of the bug were search results not containing
permissions

https://github.com/cs3org/reva/pull/3194
4 changes: 4 additions & 0 deletions pkg/storage/utils/decomposedfs/spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,10 @@ func (fs *Decomposedfs) storageSpaceFromNode(ctx context.Context, n *node.Node,
if ok {
space.Opaque = utils.AppendPlainToOpaque(space.Opaque, "spaceAlias", spaceAlias)
}

// add rootinfo
ps := n.SpaceRoot.PermissionSet(ctx)
space.RootInfo, _ = n.SpaceRoot.AsResourceInfo(ctx, &ps, nil, nil, false)
return space, nil
}

Expand Down

0 comments on commit 53b778d

Please sign in to comment.