jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kaizer (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1198) Issue while loading list of classes at that path itself.
Date Thu, 22 Nov 2007 06:28:43 GMT

     [ https://issues.apache.org/jira/browse/JCR-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Kaizer updated JCR-1198:

    Attachment: JCR-1198.zip

I have removed the earlier file. I have attached a new zip file JCR-1198.zip which contains
the patch (JCR-1198.patch) and also the source files. The patch also includes the test method
testGetObjectsByClassNameAndPath which tests the new method added in OCM. In case of any issues
in patch let me know. Since we are in different timezones it would take time to respond back
to you.

I am not convinced that the code in ObjectContentManager is correct. Extract from my earlier
mail so that it is recorded as part of this issue id.

- forming of jcrExpression in ObjectContentManagerImpl instead of QueryManager
- It will retrieve objects in that path only; basically no objects from child nodes are retrieved.

Ideally in getObjects I would have formed a Query object and called the method of QueryManager
to get the jcrExpression. The reason I could not do it right now is because the way query
behaves for objects stored directly under that path.

If there is any other idea or suggestion to change this then let me know and I can contribute
a patch.

> Issue while loading list of classes at that path itself.
> --------------------------------------------------------
>                 Key: JCR-1198
>                 URL: https://issues.apache.org/jira/browse/JCR-1198
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jcr-mapping
>         Environment: Windows XP
>            Reporter: Kaizer
>            Assignee: Christophe Lombart
>            Priority: Critical
>         Attachments: JCR-1198.zip
> 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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message