[jboss-jira] [JBoss JIRA] (ELY-788) Elytron SASL factories don't follow contract from corresponding Java interfaces

Darran Lofthouse (JIRA) issues at jboss.org
Tue Jan 17 11:28:00 EST 2017


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

Darran Lofthouse updated ELY-788:
---------------------------------
    Fix Version/s: 1.1.0.Beta19


> Elytron SASL factories don't follow contract from corresponding Java interfaces
> -------------------------------------------------------------------------------
>
>                 Key: ELY-788
>                 URL: https://issues.jboss.org/browse/ELY-788
>             Project: WildFly Elytron
>          Issue Type: Bug
>            Reporter: Josef Cacek
>            Assignee: Jan Kalina
>            Priority: Blocker
>              Labels: sasl
>             Fix For: 1.1.0.Beta19
>
>
>  Java [SaslClientFactory|http://docs.oracle.com/javase/8/docs/api/javax/security/sasl/SaslClientFactory.html] and [SaslServerFactory|http://docs.oracle.com/javase/8/docs/api/javax/security/sasl/SaslServerFactory.html] interfaces define where {{null}} parameters or {{null}} return values are allowed  and which Exception types can be used in methods. Elytron implementation of SASL mechanisms doesn't follow this contract, which results in NullPointerExceptions.
> E.g.
> {code}
> java.lang.NullPointerException
> 	at org.wildfly.security.sasl.scram.ScramSaslClientFactory.getMechanismNames(ScramSaslClientFactory.java:119)
> ...
> {code}



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


More information about the jboss-jira mailing list