[jboss-jira] [JBoss JIRA] (ELY-46) StringPrep encoding of same private use characters fails
Jan Kalina (JIRA)
issues at jboss.org
Tue Aug 26 03:32:59 EDT 2014
[ https://issues.jboss.org/browse/ELY-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994876#comment-12994876 ]
Jan Kalina edited comment on ELY-46 at 8/26/14 3:32 AM:
--------------------------------------------------------
Fix of this bug in pull request https://github.com/wildfly-security/wildfly-sasl/pull/13
was (Author: honza889):
Fix of this bug
> StringPrep encoding of same private use 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.
> {code}
> 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)
> {code}
> Prepared test is here:
> https://github.com/honza889/wildfly-sasl/commit/444de996e3777109ca4806cf6c801cd53d9fe953
> Advanced test allow test all private use characters (a lot of them cause same exception), but first two tests shows whole problem. (Advanced test will have a sense only when first two tests are successful.)
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list