Skip to content

Commit

Permalink
demposedfs: Fix ListFolder to have the correct SpaceRoot in the results
Browse files Browse the repository at this point in the history
ListFolder passed the wrong node for the SpaceRoot parameter to ReadNode()
  • Loading branch information
rhafer committed Jun 19, 2023
1 parent e800133 commit 9a3c4a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/unreleased/decomposedfs-spacelookup-overflow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: fixed couple of smaller space lookup issues

https://github.com/cs3org/reva/pull/3982
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/tree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (t *Tree) ListFolder(ctx context.Context, n *node.Node) ([]*node.Node, erro
}
}

child, err := node.ReadNode(ctx, t.lookup, n.SpaceID, nodeID, false, n, true)
child, err := node.ReadNode(ctx, t.lookup, n.SpaceID, nodeID, false, n.SpaceRoot, true)
if err != nil {
return err
}
Expand Down

0 comments on commit 9a3c4a3

Please sign in to comment.