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/02/03 16:00:19 UTC

[jira] [Commented] (OAK-1369) XPath queries: compatibility for missing @ in front of property names

    [ https://issues.apache.org/jira/browse/OAK-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889528#comment-13889528 ] 

Thomas Mueller commented on OAK-1369:
-------------------------------------

Revision 1563940: compatibility with Jackrabbit 2.x

> XPath queries: compatibility for 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)