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

URLs with JCR namespaces can get double encoded by XSSAPI.getValidHref

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: XSS Protection API 2.0.8
    • Fix Version/s: XSS Protection API 2.0.14
    • Component/s: Extensions
    • Labels:
      None

      Description

      The following URLs, when passed to org.apache.sling.xss.XSSAPI#getValidHref, get double encoded:

      1. /content/page with spaces/jcr:content
      2. /content/page%20with%20spaces/jcr:content

      The bug seems to be in the org.apache.sling.xss.impl.XSSAPIImpl#mangleNamespaces method.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                radu.cotescu Radu Cotescu
                Reporter:
                radu.cotescu Radu Cotescu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: