jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kaizer <Kaiz...@mastek.com>
Subject RE: OCM - Issue while loading list of classes at that path itself.
Date Wed, 07 Nov 2007 04:30:03 GMT

Hi,

I was trying to have a deeper look at this problem and found that its
related to the way the jackrabbit QueryManager searches based on the
jcrExpression. Suppose I've created two nodes "some/test" under the root
node. Now, if i create a query like ("/jcr:root//some/test//element(*,
"my:type")"), I dont get any results. If i create the query as
("/jcr:root//some//element(test, "my:type")"), it works fine. I had a look
at the JCR spec and it says that the constraint for obtaining Descendants or
self path is /jcr:root/some/nodes// element(*, my:type). 

Please let me know if this is an issue with Jackrabbit or if I'm doing
something incorrectly and if i should create a Jira issue for the same.

Along the same lines, should the buildJCRExpression method in
org.apache.jackrabbit.ocm.query.impl.QueryMangerImpl append "//" before
"element". 

Thanks.

Regards
Kaizer



Kaizer wrote:
> 
> Hi,
> 
> I've created a Jira issue for the same and attached the files there. The
> key is JCR-1198. Please let me know what could be the problem. Perhaps I
> am doing something incorrectly.
> 
> Thanks.
> 
> Regards
> Kaizer
> 
> -----Original Message-----
> From: Christophe Lombart [mailto:christophe.lombart@gmail.com]
> Sent: Wednesday, October 31, 2007 1:09 PM
> To: users@jackrabbit.apache.org
> Subject: Re: OCM - Issue while loading list of classes at that path
> itself.
> 
> Hi Kaizer,
> 
> Where is the patch and the modified file ?
> 
> thanks,
> Christophe
> 
> 
> On 10/30/07, Kaizer Shaikh <Kaizers@mastek.com> wrote:
>>
>>
>>
>> Hi,
>>
>>
>>
>> I cannot retrieve list of objects that are directly under the path that
>> they were saved in. I did not know where to simulate this issue and hence
>> I
>> have used DigesterSimpleQueryTest. I have attached the path for the newly
>> added test case testObjectListRetrievalAtBasePath. In case the patch is
>> not
>> up to the mark I have attached the modified file too.
>>
>>
>>
>> Instead of creating Page in /test if I create it in /sample/test and
>> search in /sample/test it returns nothing but if I search in /sample it
>> would return the object.
>>
>>
>>
>> Another important point here is that it is causing issues while
>> retrieving
>> Page class, the other test cases that are retrieving Paragraph class
>> (embedded inside Page class) are still working fine!
>>
>>
>>
>> Regards,
>>
>> Kaizer
>>
>>
>>
>>
>>
>> MASTEK LTD.
>> Making a valuable difference
>> Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
>> In the US, we're called MAJESCOMASTEK
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> Opinions expressed in this e-mail are those of the individual and not
>> that of Mastek Limited, unless specifically indicated to that effect.
>> Mastek Limited does not accept any responsibility or liability for it.
>> This e-mail and attachments (if any) transmitted with it are confidential
>> and/or privileged and solely for the use of the intended person or entity
>> to which it is addressed. Any review, re-transmission, dissemination or
>> other use of or taking of any action in reliance upon this information by
>> persons or entities other than the intended recipient is prohibited. This
>> e-mail and its attachments have been scanned for the presence of computer
>> viruses. It is the responsibility of the recipient to run the virus check
>> on e-mails and attachments before opening them. If you have received this
>> e-mail in error, kindly delete this e-mail from desktop and server.
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
> 
> MASTEK LTD.
> Making a valuable difference
> Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
> In the US, we're called MAJESCOMASTEK
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This
> e-mail and attachments (if any) transmitted with it are confidential
> and/or privileged and solely for the use of the intended person or entity
> to which it is addressed. Any review, re-transmission, dissemination or
> other use of or taking of any action in reliance upon this information by
> persons or entities other than the intended recipient is prohibited. This
> e-mail and its attachments have been scanned for the presence of computer
> viruses. It is the responsibility of the recipient to run the virus check
> on e-mails and attachments before opening them. If you have received this
> e-mail in error, kindly delete this e-mail from desktop and server.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/OCM---Issue-while-loading-list-of-classes-at-that-path-itself.-tf4719078.html#a13621251
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message