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

Details

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

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: