[
https://issues.apache.org/jira/browse/OAK-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Mueller resolved OAK-1369.
---------------------------------
Resolution: Fixed
Revision 1562749
> XPath queries: fail if a @ is missing in front of property names
> ----------------------------------------------------------------
>
> Key: OAK-1369
> URL: https://issues.apache.org/jira/browse/OAK-1369
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core, query
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Fix For: 0.16
>
>
> XPath queries with conditions of the form {noformat}[id='test']{noformat} are
> not problematic. Jackrabbit 2.x interpreted such conditions as
> {noformat}[@id='test']{noformat}, and Oak currently interprets them as
> {noformat}[@id/* = 'test']{noformat}, as this is the expected behavior for
> conditions of the form {noformat}[jcr:contains(id, 'test')]{noformat}.
> I believe the condition {noformat}[id='test']{noformat} is illegal, and it
> would be better to throw an exception instead, saying a @ is missing.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)