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

SecurityContext callerPrincipal not set with Asynchronous tagged EJB

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • None
    • Security

      The JSR 345: Enterprise JavaBeans 3.2 specification defines that propagation must behave exactly the same behavior between sync and async. When using the SecurityContext.getCallerPrincipal, the used Eclipse Soteria implementation of the Java EE Security API Specification is delegating to EJBContext.getCallerPrincipal which obtains the custom principal correctly. This principal is returned only if it is of CallerPrincipal type. This fix is to return the principal from EJBContext whether it is of type CallerPrincipal or not.

              dvilkola@redhat.com Diana Krepinska (Inactive)
              rhn-support-ivassile Ilia Vassilev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: