Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9089

Security identity not propagated into asynchronous task (elytron)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 11.0.0.Beta1
    • 11.0.0.Alpha1
    • EE
    • None
    • Hide
      mvn clean install -Delytron -DallTests -Dwildfly.tmp.enable.invocation.tests=true -pl testsuite/integration/basic -Dtest=org.jboss.as.test.integration.ejb.security.asynchronous.AsynchronousSecurityTestCase#testAsynchSecurityMethod
      
      Show
      mvn clean install -Delytron -DallTests -Dwildfly.tmp.enable.invocation.tests= true -pl testsuite/integration/basic -Dtest=org.jboss.as.test.integration.ejb.security.asynchronous.AsynchronousSecurityTestCase#testAsynchSecurityMethod

      AsynchronousSecurityTestCase fails because because anonymous user is used to call asynchronous EJB method requiring given role.

      Looks like identity is lost when creating new thread in JBossThreadFactory - code in new thread run with anonymous identity.

              jkalina@redhat.com Jan Kalina (Inactive)
              jkalina@redhat.com Jan Kalina (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: