You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Dominique Jäggi (JIRA)" <ji...@apache.org> on 2016/07/11 12:43:12 UTC

[jira] [Closed] (OAK-4523) Query: first selector should be main selector

     [ https://issues.apache.org/jira/browse/OAK-4523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominique Jäggi closed OAK-4523.
--------------------------------

bulk close after 1.5.5 release

> 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.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)