Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1947

Remove dependency to JCR and make resource provider implementation easier

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • JCR Resource 2.0.6, File System Resource Provider 1.0.0, Bundle Resource 2.0.4
    • None
    • Extensions, JCR
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cziegeler Carsten Ziegeler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: