Description
org.hippoecm.repository.impl.NodeDecorator#getDisplayName()
in case of virtual node if statement:
if(parent.isNodeType(HippoNodeType.NT_HANDLE && parent.isNodeType(HippoNodeType.NT_NAMED)
fails so node name is returned.
Quick fix would be to use canonical node in case we hit virtual node ( see below), but I am not familiar with repository code base and implications of such a change
@Override public String getDisplayName() throws RepositoryException { Node node = this; if (isVirtual()) { node = getCanonicalNode(); } if (!isNodeType(HippoNodeType.NT_NAMED)) { Node parent = node.getParent(); if (parent.isNodeType(HippoNodeType.NT_HANDLE) && parent.isNodeType(HippoNodeType.NT_NAMED)) { node = parent; } else { return getName(); } } return node.getProperty(HippoNodeType.HIPPO_NAME).getString(); }