You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "christian (JIRA)" <ji...@apache.org> on 2008/02/20 18:11:43 UTC

[jira] Created: (SLING-262) ResourceProvider can not provide children list

ResourceProvider can not provide children list
----------------------------------------------

                 Key: SLING-262
                 URL: https://issues.apache.org/jira/browse/SLING-262
             Project: Sling
          Issue Type: Bug
          Components: Resource
            Reporter: christian
            Priority: Minor


But the JcrResourceResolver's listChildren(Resource) relies on the Resource beeing descendable in order to list its children.
See Ln 191 resp. 197 of JcrResourceProvider.

Resources provided by a ResourceProvider can not implement Descendabel interface.
This interface is not exported from the jcr/resource -bundle.
As a Resoult its children never can be listed via the Resolver


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


[jira] Commented: (SLING-262) ResourceProvider can not provide children list

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573814#action_12573814 ] 

Felix Meschberger commented on SLING-262:
-----------------------------------------

Extend the ResourceProvider API in Rev. 632373 to state the handling of deeply nested resources for which no actual parent hierarchy exists.

Consider for example a provided resource at /sample/path where the /sample resource does not actually exist. To be able to traverse the resource tree to the /sample/path resource, the resource provider's listChildren method is also called for the "/" resource. In this case the method must return an iterator providing a "/sample" resource. This resource should be a SyntheticResource whose resource type MUST be set to ResourceProvider.RESOURCE_TYPE_SYNTHETIC ("sling:syntheticResourceProviderResource").

> ResourceProvider can not provide children list
> ----------------------------------------------
>
>                 Key: SLING-262
>                 URL: https://issues.apache.org/jira/browse/SLING-262
>             Project: Sling
>          Issue Type: Bug
>          Components: Resource
>            Reporter: christian
>            Assignee: Felix Meschberger
>
> But the JcrResourceResolver's listChildren(Resource) relies on the Resource beeing descendable in order to list its children.
> See Ln 191 resp. 197 of JcrResourceProvider.
> Resources provided by a ResourceProvider can not implement Descendabel interface.
> This interface is not exported from the jcr/resource -bundle.
> As a Resoult its children never can be listed via the Resolver

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


[jira] Resolved: (SLING-262) ResourceProvider can not provide children list

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved SLING-262.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

Also implemented the ResourceProvider.listChildren method correctly in the sling/servlet-resolver module in Rev. 632383.

Please close this issue, if your problem is fixed. Thanks.

BTW: By these implementations it is now finally possible to traverse the resource tree.

> ResourceProvider can not provide children list
> ----------------------------------------------
>
>                 Key: SLING-262
>                 URL: https://issues.apache.org/jira/browse/SLING-262
>             Project: Sling
>          Issue Type: Bug
>          Components: Resource
>            Reporter: christian
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> But the JcrResourceResolver's listChildren(Resource) relies on the Resource beeing descendable in order to list its children.
> See Ln 191 resp. 197 of JcrResourceProvider.
> Resources provided by a ResourceProvider can not implement Descendabel interface.
> This interface is not exported from the jcr/resource -bundle.
> As a Resoult its children never can be listed via the Resolver

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


[jira] Commented: (SLING-262) ResourceProvider can not provide children list

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573608#action_12573608 ] 

Felix Meschberger commented on SLING-262:
-----------------------------------------

Thanks for reporting. The Descendable interface was an attempt at abstracting child iteration of resources. This predates the current ResourceProvider interface and its implementation and should actually be replaced by the proper support in the ResourceProvider's and the JcrResourceResolver.

> ResourceProvider can not provide children list
> ----------------------------------------------
>
>                 Key: SLING-262
>                 URL: https://issues.apache.org/jira/browse/SLING-262
>             Project: Sling
>          Issue Type: Bug
>          Components: Resource
>            Reporter: christian
>            Assignee: Felix Meschberger
>            Priority: Minor
>
> But the JcrResourceResolver's listChildren(Resource) relies on the Resource beeing descendable in order to list its children.
> See Ln 191 resp. 197 of JcrResourceProvider.
> Resources provided by a ResourceProvider can not implement Descendabel interface.
> This interface is not exported from the jcr/resource -bundle.
> As a Resoult its children never can be listed via the Resolver

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


[jira] Commented: (SLING-262) ResourceProvider can not provide children list

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573822#action_12573822 ] 

Felix Meschberger commented on SLING-262:
-----------------------------------------

Implemented support for ResourceProvider.listChildren in the jcr/resource bundle in Rev. 632379.

> ResourceProvider can not provide children list
> ----------------------------------------------
>
>                 Key: SLING-262
>                 URL: https://issues.apache.org/jira/browse/SLING-262
>             Project: Sling
>          Issue Type: Bug
>          Components: Resource
>            Reporter: christian
>            Assignee: Felix Meschberger
>
> But the JcrResourceResolver's listChildren(Resource) relies on the Resource beeing descendable in order to list its children.
> See Ln 191 resp. 197 of JcrResourceProvider.
> Resources provided by a ResourceProvider can not implement Descendabel interface.
> This interface is not exported from the jcr/resource -bundle.
> As a Resoult its children never can be listed via the Resolver

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


[jira] Assigned: (SLING-262) ResourceProvider can not provide children list

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned SLING-262:
---------------------------------------

    Assignee: Felix Meschberger

> ResourceProvider can not provide children list
> ----------------------------------------------
>
>                 Key: SLING-262
>                 URL: https://issues.apache.org/jira/browse/SLING-262
>             Project: Sling
>          Issue Type: Bug
>          Components: Resource
>            Reporter: christian
>            Assignee: Felix Meschberger
>            Priority: Minor
>
> But the JcrResourceResolver's listChildren(Resource) relies on the Resource beeing descendable in order to list its children.
> See Ln 191 resp. 197 of JcrResourceProvider.
> Resources provided by a ResourceProvider can not implement Descendabel interface.
> This interface is not exported from the jcr/resource -bundle.
> As a Resoult its children never can be listed via the Resolver

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


[jira] Updated: (SLING-262) ResourceProvider can not provide children list

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated SLING-262:
------------------------------------

    Priority: Major  (was: Minor)

> ResourceProvider can not provide children list
> ----------------------------------------------
>
>                 Key: SLING-262
>                 URL: https://issues.apache.org/jira/browse/SLING-262
>             Project: Sling
>          Issue Type: Bug
>          Components: Resource
>            Reporter: christian
>            Assignee: Felix Meschberger
>
> But the JcrResourceResolver's listChildren(Resource) relies on the Resource beeing descendable in order to list its children.
> See Ln 191 resp. 197 of JcrResourceProvider.
> Resources provided by a ResourceProvider can not implement Descendabel interface.
> This interface is not exported from the jcr/resource -bundle.
> As a Resoult its children never can be listed via the Resolver

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