[jboss-jira] [JBoss JIRA] (ELY-46) StringPrep encoding of same characters fails
Jan Kalina (JIRA)
issues at jboss.org
Wed Aug 20 06:05:30 EDT 2014
[ https://issues.jboss.org/browse/ELY-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Kalina updated ELY-46:
--------------------------
Description:
{{StringPrep.encode()}} throws {{StringIndexOutOfBoundsException}} on encoding same private use characters, but should throw {{IllegalArgumentException}} and only when profile {{FORBID_PRIVATE_USE}} is used.
{quote}
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
at java.lang.String.charAt(String.java:658)
at org.wildfly.sasl.util.StringPrep.encode(StringPrep.java:212)
{quote}
Step to reproduce contains test.
was:
{{StringPrep.encode()}} throws {{StringIndexOutOfBoundsException}} on encoding same private use characters, but should throw {{IllegalArgumentException}} and only when profile {{FORBID_PRIVATE_USE}} is used.
{quote}
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
at java.lang.String.charAt(String.java:658)
at org.wildfly.sasl.util.StringPrep.encode(StringPrep.java:212)
{quote}
Step to reproduce contains
> StringPrep encoding of same characters fails
> --------------------------------------------
>
> Key: ELY-46
> URL: https://issues.jboss.org/browse/ELY-46
> Project: WildFly Elytron
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Utils
> Reporter: Jan Kalina
> Assignee: Darran Lofthouse
> Priority: Minor
>
> {{StringPrep.encode()}} throws {{StringIndexOutOfBoundsException}} on encoding same private use characters, but should throw {{IllegalArgumentException}} and only when profile {{FORBID_PRIVATE_USE}} is used.
> {quote}
> java.lang.StringIndexOutOfBoundsException: String index out of range: 2
> at java.lang.String.charAt(String.java:658)
> at org.wildfly.sasl.util.StringPrep.encode(StringPrep.java:212)
> {quote}
> Step to reproduce contains test.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list