Sure thing, I've created https://issues.apache.org/jira/browse/JCR-1447 and attached a test case (sorry again the test data are in French).
Marcel Reutegger wrote: > Hi Frederic, > > this is most likely a bug in jackrabbit, can you please file a jira issue? > > thank you. > > regards > marcel > > Frederic Laugier wrote: >> Hello, >> >> I have a question regarding the Exists / Not exists XPath operators. >> >> >> My test data contains three nodes : >> >> + nodeA >> - prop1 = 'value' >> + child >> - subprop1 = 'something' >> >> + nodeB >> - prop1 = 'value' >> + child >> >> + nodeC >> - prop1 = 'value' >> >> >> >> The query //*[child/@subprop1)] returns nodeA >> >> The query //*[child/not(@subprop1)] returns nodeB >> >> The query //*[not(child/@subprop1)] returns nodeB >> >> I may be mistaken but I thought the third query would return nodeC as >> well >> >> Can anybody tell me if I'm wrong, or if there is any other way to test >> the non existence of a property in a child node regardless if the child >> node exists or not ? >> >> I'm using Jackrabbit 1.5 (r633030). >> >> Best regards, >> Frederic Laugier. >> >>
