Node.getSubnode() does not do a getNode() (property getter) as fallback

anymore, so we have to do that explicitly in the URL path resolving
code.
This commit is contained in:
hns 2001-08-04 11:47:36 +00:00
parent c3f4b73fe3
commit 6cda9fc224

View file

@ -272,8 +272,13 @@ public class RequestEvaluator implements Runnable {
continue;
if (isProperty) // get next element as property
currentNode = currentNode.getNode (pathItems[i], false);
else // get next element as subnode
currentNode = currentNode.getSubnode (pathItems[i]);
else {
// try to get next element as subnode first, then fall back to property
INode nextNode = currentNode.getSubnode (pathItems[i]);
if (nextNode == null)
nextNode = currentNode.getNode (pathItems[i], false);
currentNode = nextNode;
}
isProperty = false;
// add object to request path if suitable