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

Map test in JCR Resource Resolver web console plugin is not reflecting all cases

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • JCR Resource 2.0.6
    • JCR Resource 2.0.8
    • JCR
    • None

    Description

      The "Map" test in the web console plugin of the JCR resource resolver is actually doing a

      ResourceResolver.map(request, path)

      with the request being something like "http://null", without even noting that. This is misleading as one would at least expect that the current server is used (ie. how the web console is accessed), eg. http://localhost in most cases. This difference will give different results in many cases, eg. if an internal redirect based on localhost.80 is configured.

      Also, there is a second map() only accepting a path which behaves different in that it will always add the domain prefix if configured.

      For proper testing there should be a way to do all of them.

      Attachments

        1. SLING-1219.patch
          3 kB
          Alexander Klimetschek
        2. SLING-1219-second.patch
          0.9 kB
          Alexander Klimetschek

        Activity

          People

            fmeschbe Felix Meschberger
            alexander.klimetschek Alexander Klimetschek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: