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

Support regular expressions for ResourceResolver.map configuration

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: JCR Resource 2.1.0
    • Fix Version/s: Resource Resolver 1.0.0
    • Component/s: JCR
    • Labels:
      None

      Description

      Currently configuration in /etc/map supports using regular expressions to resolve URLs to resource paths. Such regular expression can also include replacement patterns such as

      http/host.90/(.*) => /content/host/$1

      Such replacement patterns are not easily revertible and thus such entries only influence URL resolution through ResourceResolver.resolve but not resource path mapping through ResourceResolver.map.

      As a new feature, support should be created to be able to have regular expressions with replacements patterns for path mapping such as:

      /content/([^/]+)/routed/(.*) => http://$1/$2

      This requires the ability to register internal paths in addition to URL paths in the /etc/map structure which map to URLs.

        Attachments

          Activity

            People

            • Assignee:
              fmeschbe Felix Meschberger
              Reporter:
              fmeschbe Felix Meschberger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: