[
https://issues.apache.org/jira/browse/SLING-4560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390755#comment-14390755
]
Bertrand Delacretaz commented on SLING-4560:
--------------------------------------------
Can you confirm that the below escaped strings are what you are testing with,
or supply the correct ones?
We should not have unicode strings in our source code.
{code}
{\"/etc/commerce/collections/\u4e2d\u6587\",
\"/etc/commerce/collections/\u4e2d\u6587\"}
{\"/etc/commerce/collections/\u2e81\u3021\u3022\u2609\u2295\u3012\",
\"/etc/commerce/collections/\u2e81\u3021\u3022\u2609\u2295\u3012\"},
{code}
> XSSAPI#getValidHref is empty for valid Bengali or Hindi characters
> ------------------------------------------------------------------
>
> Key: SLING-4560
> URL: https://issues.apache.org/jira/browse/SLING-4560
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Reporter: Jean-Christophe Kautzmann
> Fix For: XSS Protection API 1.0.4
>
>
> I added (locally) 2 test cases to
> org.apache.sling.xss.impl.XSSAPIImplTest#testGetValidHref:
> {code}
> {"/etc/commerce/collections/中文", "/etc/commerce/collections/中文"},
> {"/etc/commerce/collections/⺁〡〢☉⊕〒", "/etc/commerce/collections/⺁〡〢☉⊕〒"},
> {code}
> the first test passes (chinese characters), the 2nd fails (bengali/hindi
> characters) although it should pass as they are valid characters.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)