You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2013/02/22 17:10:14 UTC

[jira] [Resolved] (SLING-1947) Remove dependency to JCR and make resource provider implementation easier

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

Carsten Ziegeler resolved SLING-1947.
-------------------------------------

    Resolution: Duplicate

This is a duplicate of SLING-2541 and therefore fixed
                
> Remove dependency to JCR and make resource provider implementation easier
> -------------------------------------------------------------------------
>
>                 Key: SLING-1947
>                 URL: https://issues.apache.org/jira/browse/SLING-1947
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions, JCR
>    Affects Versions: JCR Resource 2.0.6, File System Resource Provider 1.0.0, Extensions Bundleresource 2.0.4
>            Reporter: Carsten Ziegeler
>
> Currently the resource provider implementations usually check if the resource points to a directory if the repository has a node at this location to allow to let the repository return this node as the directory resource.
> This requires the implementations to adapt the resolver to a session, check if the node is available etc.
> This looks like a workaround, creates an unnecessary dependency to JCR and might create problems in the future if the repository is not used as a provider or is not the root provider.
> One solution would be to let the implementations return "nt:folder" and the resource resolver checks in this case the root provider if it has a resource at the same position and returns that one instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira