You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2018/08/08 09:36:00 UTC

[jira] [Resolved] (SLING-7814) URLs with JCR namespaces can get double encoded by XSSAPI.getValidHref

     [ https://issues.apache.org/jira/browse/SLING-7814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radu Cotescu resolved SLING-7814.
---------------------------------
    Resolution: Fixed

Fixed in [commit 714ae03|https://github.com/apache/sling-org-apache-sling-xss/commit/714ae03].

> URLs with JCR namespaces can get double encoded by XSSAPI.getValidHref
> ----------------------------------------------------------------------
>
>                 Key: SLING-7814
>                 URL: https://issues.apache.org/jira/browse/SLING-7814
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: XSS Protection API 2.0.8
>            Reporter: Radu Cotescu
>            Assignee: Radu Cotescu
>            Priority: Major
>             Fix For: XSS Protection API 2.0.14
>
>
> The following URLs, when passed to {{org.apache.sling.xss.XSSAPI#getValidHref}}, get double encoded:
>  # {{/content/page with spaces/jcr:content}}
>  # {{/content/page%20with%20spaces/jcr:content}}
> The bug seems to be in the {{org.apache.sling.xss.impl.XSSAPIImpl#mangleNamespaces}} method.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)