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:
parent
c3f4b73fe3
commit
6cda9fc224
1 changed files with 7 additions and 2 deletions
|
@ -272,8 +272,13 @@ public class RequestEvaluator implements Runnable {
|
||||||
continue;
|
continue;
|
||||||
if (isProperty) // get next element as property
|
if (isProperty) // get next element as property
|
||||||
currentNode = currentNode.getNode (pathItems[i], false);
|
currentNode = currentNode.getNode (pathItems[i], false);
|
||||||
else // get next element as subnode
|
else {
|
||||||
currentNode = currentNode.getSubnode (pathItems[i]);
|
// 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;
|
isProperty = false;
|
||||||
|
|
||||||
// add object to request path if suitable
|
// add object to request path if suitable
|
||||||
|
|
Loading…
Add table
Reference in a new issue