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

Security identity not propagated into asynchronous task (elytron)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 11.0.0.Alpha1
    • Fix Version/s: 11.0.0.Beta1
    • Component/s: EE
    • Labels:
      None
    • Steps to Reproduce:
      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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              honza889 Jan Kalina (Inactive)
              Reporter:
              honza889 Jan Kalina (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: