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

JcrResourceResolver2.map method does not apply namespace mangling and context path prefix to mapped URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 2.0.4
    • JCR Resource 2.0.4
    • JCR
    • None

    Description

      If a resource, say "/content/some/page/jcr:content" is mapped to an absolute URL using the mapping rule
      /content/ --> http://host/
      it is returned as
      http://host/some/page/jcr:content
      whereas it would be expected to be returned as
      http://host/some/page/_jcr_content

      Similarly, given that Sling would be launched in the "/rooted" context, the mapped result as above would be expected as
      http://host/root/some/page/_jcr_content

      That is the "/rooted" context is expected to be prepended.

      Namespace mangling and context prefixing work for simple path mappings where not an absolute URL is created.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: