-
Bug
-
Resolution: Done
-
Minor
-
PicketBox_5_1_0.Final
-
None
If a principal is created with the roles set to null then NPE is reported back to the user during the authentication process:
java.lang.RuntimeException: java.lang.NullPointerException at org.wildfly.extension.undertow.security.JAASIdentityManagerImpl.verifyCredential(JAASIdentityManagerImpl.java:140) at org.wildfly.extension.undertow.security.JAASIdentityManagerImpl.verify(JAASIdentityManagerImpl.java:94) at io.undertow.security.impl.BasicAuthenticationMechanism.authenticate(BasicAuthenticationMechanism.java:167) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:245) .... Caused by: java.lang.NullPointerException at org.jboss.security.identity.plugins.SimpleRole.hashCode(SimpleRole.java:106)