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: Extensions Bundleresource 2.0.4, File System Resource
Provider 1.0.0, JCR Resource 2.0.6
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.
-
You can reply to this email to add a comment to the issue online.