[jboss-jira] [JBoss JIRA] (WFLY-11130) javax.security.enterprise.SecurityContext.isCallerInRole throws NullPointerException if the caller is not authenticated (New Java EE 8 Security)

Darran Lofthouse (Jira) issues at jboss.org
Tue Dec 18 07:45:03 EST 2018


    [ https://issues.jboss.org/browse/WFLY-11130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675760#comment-13675760 ] 

Darran Lofthouse commented on WFLY-11130:
-----------------------------------------

Can you please try again with WildFly 15 backed by WildFly Elytron, if the issue is still present there I will take a look.

> javax.security.enterprise.SecurityContext.isCallerInRole throws NullPointerException if the caller is not authenticated (New Java EE 8 Security)
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-11130
>                 URL: https://issues.jboss.org/browse/WFLY-11130
>             Project: WildFly
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 14.0.1.Final
>            Reporter: Instantiation Exception
>            Assignee: Darran Lofthouse
>            Priority: Major
>
> I tried to use new Java EE 8 Security API and noticed that javax.security.enterprise.SecurityContext.isCallerInRole throws NullPointerException if the caller is not authenticated. But according to JavaDoc it should return false in this situation.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list