Alex Parvulescu created OAK-1068:
------------------------------------

             Summary: XPath query fails on negated boolean properties 
                 Key: OAK-1068
                 URL: https://issues.apache.org/jira/browse/OAK-1068
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core, query
            Reporter: Alex Parvulescu


The issue can be seen when running an xpath query for nodes that have a boolean 
property set to false:

bq. //*[(child/@prop = 'false' or not(child/@prop))]

this translates into 

bq. select [jcr:path], [jcr:score], * from [nt:base] as a where [child/prop] = 
false or [child/prop] is null

the second _or_ part is wrong and selects more than it should: 'or [child/prop] 
is null'




--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to