[jira] Created: (SLING-349) Listing children of bundle resources hiding JCR resources does not work

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SLING-349) Listing children of bundle resources hiding JCR resources does not work

Andrei Shilov (Jira)
Listing children of bundle resources hiding JCR resources does not work
-----------------------------------------------------------------------

                 Key: SLING-349
                 URL: https://issues.apache.org/jira/browse/SLING-349
             Project: Sling
          Issue Type: Bug
          Components: Resource
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: 2.0.0


Consider a bundle providing resources below /some/path and a the bundle resource /some/path/nested/folder hiding the /some/path/nested/folder repository node. In this case accessing the /some/path/nested/folder resource would return the JCR resource instead of the bundle resource.

If now the children of the /some/path/nested/folder resource should be listed, the children of the given resource from the bundle are not returned.

The problem is that the child resource iterator does not actually access the bundle to find the child entries.

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


Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (SLING-349) Listing children of bundle resources hiding JCR resources does not work

Andrei Shilov (Jira)

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

Felix Meschberger closed SLING-349.
-----------------------------------

    Resolution: Fixed

Implemented the fix in Rev. 643386

Basically the BundleResourceProvider.listChildren(Resource) method now internally always uses a BundleResourceIterator, also for non-BundleResource parent resources (after checking applicability of course).

> Listing children of bundle resources hiding JCR resources does not work
> -----------------------------------------------------------------------
>
>                 Key: SLING-349
>                 URL: https://issues.apache.org/jira/browse/SLING-349
>             Project: Sling
>          Issue Type: Bug
>          Components: Resource
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> Consider a bundle providing resources below /some/path and a the bundle resource /some/path/nested/folder hiding the /some/path/nested/folder repository node. In this case accessing the /some/path/nested/folder resource would return the JCR resource instead of the bundle resource.
> If now the children of the /some/path/nested/folder resource should be listed, the children of the given resource from the bundle are not returned.
> The problem is that the child resource iterator does not actually access the bundle to find the child entries.

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