Hi,
Any workaround?
Should I file a bug report ?
Frank
Le 2010-01-18 à 10:44 AM, François Cassistat a écrit :
> I can't make a minimal example with the exactly the same problem, but there
> seems to have something wrong with this "is null"/"is not null" operation :
>
> Here's a simple repository :
> /a
> /a/@jcr:primaryType=nt:unstructured
> /a/c
> /a/c/@test=value
> /a/c/@jcr:primaryType=nt:unstructured
> /a/c/d
> /a/c/d/@jcr:primaryType=nt:unstructured
>
> workspace.getQueryManager().createQuery("//*...@test='value' and not(d/e)]",
> Query.XPATH).execute().getNodes().nextNode();
>> returns /a/c (which is normal)
>
> workspace.getQueryManager().createQuery("//*...@test='value' and
> not(d/e/@f)]", Query.XPATH).execute().getNodes().nextNode();
>> fails, no results (which is wrong, i think)
>
> workspace.getQueryManager().createQuery("//*...@test='value' and d/e]",
> Query.XPATH).execute().getNodes().nextNode();
>> returns /a/c (which is wrong too, i think)
>
>
> Frank
>
>
>
> Le 2010-01-18 à 8:35 AM, Alexander Klimetschek a écrit :
>
>> 2010/1/15 François Cassistat <[email protected]>:
>>> On JackRabbit 2.0 beta 1 :
>>>
>>> //*...@property1 = 'some value' and not(path/to/my/@property2)]
>>> always returns no result, while :
>>>
>>> //*...@property1 = 'some value' and path/to/my/@property2]
>>> returns some results. Am I doing something wrong or it is a bug ?
>>
>> What are the value(s) of @property2 in your content? If there is no
>> node that has @property1='some value' and _no_ @property2 set, the
>> results are to be expected.
>>
>> Regards,
>> Alex
>>
>> --
>> Alexander Klimetschek
>> [email protected]
>