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

Support creating relative resource paths

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • Scripting Bundle Maven Plugin 0.3.0
    • None
    • None

    Description

      The servlet resolver supports registering servlets for relative paths/resource types. Those are made absolute by prefixing them with the local property sling.servlet.prefix or if not set by the OSGi configuration property servletresolver.servletRoot of PID org.apache.sling.servlets.resolver.SlingServletResolver

      (https://sling.apache.org/documentation/the-sling-engine/servlets.html)

      The Sling Scripting Bundle Maven Plugin on the other hand always creates an absolute path for the Provide-Capability attribute sling.servlet.resourceTypes.

      On the other hand it would be helpful to define Require-Capability with relative resource types (to allow overlays). Unfortunately OSGi will only match them if the attribute value of the provided and required capability are always the same!

      Therefore the Scripting Bundle Maven Plugin should optionally create sling.servlet.resourceTypes values not starting with /!

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: