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. server.log
          179 kB
          Martin Malina
        2. test.log
          12 kB
          Martin Malina
        3. TEST-org.jboss.test.ejb3.jbpapp2473.unit.RunAsUnitTestCase.xml
          135 kB
          Martin Malina

            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: