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

JcrResourceResolver2 incorrectly loads existing configuration into its map entries

    XMLWordPrintableJSON

Details

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

    Description

      After the implementation of SLING-249 the new JcrResourceResolver2 class is expected to read existing JcrResourceResolverFactory configuration into its internal map entry list. This has a series of problems though:

      • The ././ pattern to match any scheme and any host is too greedy. The pattern should be [^/]/[^/]/ to not swallow slashes
      • Virtual Host entries were treated as prefix matches. They should rather be defined as hooked patterns using the ^ and $ charaters
      • URL Mapping entries were added the wrong way around, such that instead of mapping /* to /content/* etc. the mapping was /content/* to /* etc.
      • Multiple replacement of matched URL parts with replacement failed due to wrong java.util.Matcher use

      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: