Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.DR16
    • Fix Version/s: 7.1.0.DR18
    • Component/s: JCA
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      Hide

      https://github.com/simkam/wildfly/tree/ra_workmanager_ely

      wildfly$ cd testsuite/integration/basic
      basic$ mvn test -Dtest=WildFlyActivationRaWithWMElytronSecurityDomainWorkManagerElytronEnabledTestCase -Denforcer.skip -Dcheckstyle.skip -DtestLogToFile=false
      
      Show
      https://github.com/simkam/wildfly/tree/ra_workmanager_ely wildfly$ cd testsuite/integration/basic basic$ mvn test -Dtest=WildFlyActivationRaWithWMElytronSecurityDomainWorkManagerElytronEnabledTestCase -Denforcer.skip -Dcheckstyle.skip -DtestLogToFile=false
    • Affects Testing:
      Blocks Testing

      Description

      ElytronSecurityContext.getRoles always returns empty array.

      It's because

      for (String role : identity.getRoles()) {
      

      SecurityIdentity.getRoles() returns empty Roles Iterable

      when changed to

      for (String role : identity.getRoles("ejb")) {
      

      it works

      I suspect it's because ElytronCallbackHandler sets ejb category

      identity = identity.withRoleMapper("ejb", RoleMapper.constant(Roles.fromSet(roles)));
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  flavia.rainone Flavia Rainone
                  Reporter:
                  simkam Martin Simka
                  Tester:
                  Martin Simka
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: