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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2014/01/30 10:20:09 UTC
[jira] [Resolved] (OAK-1369) XPath queries: fail if a @ is missing
in front of property names
[ 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)