[jboss-jira] [JBoss JIRA] (ELY-1184) FAMILY and HASH selectors in Elytron client are parsed incorrectly

Ondrej Lukas (JIRA) issues at jboss.org
Mon May 22 12:03:00 EDT 2017


     [ https://issues.jboss.org/browse/ELY-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ondrej Lukas updated ELY-1184:
------------------------------
    Description: 
When #FAMILY or #HASH selector is used in Elytron client configuration file then it is parsed incorrectly - end bracket ')' is included in parsed family/hash name - it means it results to {{DIGEST)}} instead of {{DIGEST}}. It seems it is parsed incorrectly in {{parseSpecialWithName}} method of {{org.wildfly.security.sasl.SaslMechanismSelector}} class in [1].

Following element for selector is used in Elytron client configuration file:
{code}
...
<sasl-mechanism-selector selector="#FAMILY(DIGEST)"/>
...
{code}

[1] https://github.com/wildfly-security/wildfly-elytron/blob/master/src/main/java/org/wildfly/security/sasl/SaslMechanismSelector.java#L693

  was:
When #FAMILY or #HASH selector is used in Elytron client configuration file then it is parsed incorrectly - end bracket ')' is included in parsed family/hash name. It seems it is parsed incorrectly in {{parseSpecialWithName}} method of {{org.wildfly.security.sasl.SaslMechanismSelector}} class in [1].

[1] https://github.com/wildfly-security/wildfly-elytron/blob/master/src/main/java/org/wildfly/security/sasl/SaslMechanismSelector.java#L693



> FAMILY and HASH selectors in Elytron client are parsed incorrectly
> ------------------------------------------------------------------
>
>                 Key: ELY-1184
>                 URL: https://issues.jboss.org/browse/ELY-1184
>             Project: WildFly Elytron
>          Issue Type: Bug
>    Affects Versions: 1.1.0.Beta42
>            Reporter: Ondrej Lukas
>            Assignee: Darran Lofthouse
>            Priority: Critical
>
> When #FAMILY or #HASH selector is used in Elytron client configuration file then it is parsed incorrectly - end bracket ')' is included in parsed family/hash name - it means it results to {{DIGEST)}} instead of {{DIGEST}}. It seems it is parsed incorrectly in {{parseSpecialWithName}} method of {{org.wildfly.security.sasl.SaslMechanismSelector}} class in [1].
> Following element for selector is used in Elytron client configuration file:
> {code}
> ...
> <sasl-mechanism-selector selector="#FAMILY(DIGEST)"/>
> ...
> {code}
> [1] https://github.com/wildfly-security/wildfly-elytron/blob/master/src/main/java/org/wildfly/security/sasl/SaslMechanismSelector.java#L693



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list