[
https://issues.apache.org/jira/browse/OAK-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Mueller reassigned OAK-2357:
-----------------------------------
Assignee: Thomas Mueller
> Abnormal behavior of "and not(..)" clause in XPath
> --------------------------------------------------
>
> Key: OAK-2357
> URL: https://issues.apache.org/jira/browse/OAK-2357
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: query
> Affects Versions: 1.0.8, 1.1.3
> Reporter: Geoffroy Schneck
> Assignee: Thomas Mueller
> Priority: Minor
> Fix For: 1.2, 1.0.11
>
>
> Create a node {{/tmp/node1}} with property {{prop1 = 'foobar'}}.
> Perform following query :
> {noformat}
> /jcr:root/tmp//*[prop1 = 'foobar' and not(prop1 = 'foobarrrr')]
> {noformat}
> {{/tmp/node1}} is returned by the search.
> Now replace the = clause by the {{jcr:contains()}} :
> {noformat}
> /jcr:root/tmp//*[jcr:contains(., 'foobar') and not(jcr:contains(.,
> 'foobarrrrr'))]
> {noformat}
> No result is returned.
> Despite the presence of {{/tmp/node1}} in the results of
> {{/jcr:root/tmp//\*\[not(jcr:contains(., 'foobarrrrr'))\]}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)