[jboss-jira] [JBoss JIRA] (WFLY-9078) No caller principal in new thread created from EJB (elytron)

Jan Kalina (JIRA) issues at jboss.org
Wed Jul 12 11:18:01 EDT 2017


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

Jan Kalina moved JBEAP-12091 to WFLY-9078:
------------------------------------------

              Project: WildFly  (was: JBoss Enterprise Application Platform)
                  Key: WFLY-9078  (was: JBEAP-12091)
             Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
          Component/s: Security
                           (was: Security)
    Affects Version/s: 11.0.0.Alpha1
                           (was: 7.1.0.ER2)


> No caller principal in new thread created from EJB (elytron)
> ------------------------------------------------------------
>
>                 Key: WFLY-9078
>                 URL: https://issues.jboss.org/browse/WFLY-9078
>             Project: WildFly
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 11.0.0.Alpha1
>            Reporter: Jan Kalina
>            Assignee: Jan Kalina
>            Priority: Blocker
>
> When elytron profile of testsuite enabled, *DefaultManagedThreadFactoryTestCase* fails, because caller principal is not passed into new thread:
> {code}
> java.lang.IllegalStateException: the caller principal anonymous is not the expected guest
> (TestEJBRunnable.java:70)
> {code}
> Lets have:
> {code}
> new InitialContext().lookup("java:comp/EJBContext").getCallerPrincipal()
> {code}
> * On *DefaultManagedThreadFactoryTestEJB:63* (in EJB, but outside of new thread yet) it gives correctly "guest".
> * On *DefaultManagedThreadFactoryTestEJB:70* (inside Runnable) it gives "anonymous".



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


More information about the jboss-jira mailing list