Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-2473

@RunAsPrincipal not working as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • EAP 5.0.0.CR3
    • 4.3.0.GA_CP06, EAP 5.0.0.BETA
    • EJB, Security
    • None

      When a SLSB annotated with @RunAs and @RunAsPrincipal invokes another SLSB, EJBContext.getCallerPrincipal invoked in the second SLSB returns the unauthenticatedIdentity and not the identity set with @RunAsPrincipal on the first SLSB as expected.
      I will attach 2 example projects to demonstrate that.

        1. TEST-org.jboss.test.ejb3.jbpapp2473.unit.RunAsUnitTestCase.xml
          135 kB
        2. test.log
          12 kB
        3. server.log
          179 kB
        4. RunAsEAP5.zip
          8 kB
        5. RunAsEAP4.3_CP06.zip
          9 kB

              rhn-engineering-cdewolf Carlo de Wolf
              mmoyses Marcus Moyses (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: