Maksims Zizkuns schrieb:
...
Now, from my point of view all said above means that non-escaped
whitespaces aren't allowed in a node name in XPath query.
However Jackrabbit TCK test
org.apache.jackrabbit.test.api.query.DerefQueryLevel1Test
feels good executing XPath like: /jcr:root/testdata/custom sample nodes
/test:refTargetNode/jcr:deref(@jcr:versionHistory,
'h6bd9fd75-77db-470a-99d9-94a22f3c280a')
So, the question actually is who is right? TCK or JSR-170
or I missunderstood JSR-170 and there is no contradictions with TCK?
...
Looks like a bug in
private String createStatement(Property refProperty, String nameTest)
throws RepositoryException {
StringBuffer stmt = new StringBuffer();
stmt.append("/").append(jcrRoot).append(refProperty.getParent().getPath());
stmt.append("/").append(jcrDeref).append("(@");
stmt.append(refProperty.getName()).append(", '");
stmt.append(nameTest).append("')");
return stmt.toString();
}
to me (it should do the required escaping of the name).
Best regards, Julian