[
https://issues.apache.org/jira/browse/OAK-4523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Reschke updated OAK-4523:
--------------------------------
Fix Version/s: 1.6
> Query: first selector should be main selector
> ---------------------------------------------
>
> Key: OAK-4523
> URL: https://issues.apache.org/jira/browse/OAK-4523
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: query
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Fix For: 1.6, 1.5.5
>
>
> Some applications and tools expect that the first selector is the "main"
> selector. This is not a bug (violation of the JCR spec or contrary to the
> documentation) but a compatibility issue with Jackrabbit 2.x. So for the
> XPath query
> {noformat}
> //a[@x]/b[@y]
> {noformat}
> the expectation is that the path of the first selector is "/a/b" and not
> "/a". The XPath query is converted to SQL-2 join, that has two selectors.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)