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

URL Mappings for URL paths containing "-" does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 2.0.6
    • JCR Resource 2.0.8
    • JCR
    • None

    Description

      Consider the following mapping for JCR Resource Resolver URL Mapping:

      /content/somesite/en-us/-/

      This breaks, because the dash in "en-us" is considered a separator instead of being part of the incoming URL path thus giving a mapping

      "/content/somesite/en" <-> "us//"

      To fix this situation in a broader context the "-" should be replaced as the character indicating bidirectional mapping by a ":" and the code adapted to not break on dashes any more.

      For backwards compatibility, the dash should still be supported as a bidirectional indicator.

      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: