Merge pull request #1067 from aduffeck/bump-reva-b8210a

Bump reva to pull in the latest fixes
This commit is contained in:
Ralf Haferkamp
2025-06-19 11:22:10 +02:00
committed by GitHub
4 changed files with 11 additions and 6 deletions

View File

@@ -505,12 +505,17 @@ func (n *Node) Child(ctx context.Context, name string) (*Node, error) {
return nil, err
}
c, err = ReadNode(ctx, n.lu, spaceID, nodeID, false, n.SpaceRoot, true)
readNode, err := ReadNode(ctx, n.lu, spaceID, nodeID, false, n.SpaceRoot, true)
if err != nil {
return nil, errors.Wrap(err, "could not read child node")
}
if !readNode.Exists {
// if the node does not exist we return the manually crafted node instead which contains more
// information than the read node, e.g. the parent id and the name
return c, nil
}
return c, nil
return readNode, nil
}
// ParentWithReader returns the parent node