Details
Description
The HippoNode.getDisplayName() implementation will attempt to determine the node display name via the parent node (recursively) if the current node is not of type hippo:named.
Which will fail Node.getParent() if the current node is the root node, as calling getParent() then will throw a ItemNotFoundException.
Fix should be trivial, e.g. like replacing the current check in org.hippoecm.repository.impl.NodeDecorator.getDisplayName():
if (!isNodeType(HippoNodeType.NT_NAMED)) {
Node parent = node.getParent();
with
if (!isNodeType(HippoNodeType.NT_NAMED)) { if (JcrConstants.ROOT_NODE_ID.equals(node.getIdentifier())) { return getName(); } Node parent = node.getParent();
Attachments
Issue Links
- is backported by
-
REPO-1865 [Backport 11.2] ItemNotFoundException when invoking HippoNode.getDisplayName() for the root node
- Closed
-
REPO-1893 [Backport 11.2, proper] ItemNotFoundException when invoking HippoNode.getDisplayName() for the root node
- Closed
- relates to
-
REPO-1836 getDisplayName() returns wrong value for virtual node
- Closed