Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1015

javax.ejb.EJBContext.getCallerPrincipal() not predictable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-beta-1, 3.0-beta-2, 3.0, 3.1
    • 3.1.1
    • security
    • None

    Description

      The result of getCallerPrincipal can be random depending on list order. Code has been reworked so that JAAS Implementations may annotate the principal implementations with @CallerPrincipal to tell the org.apache.openejb.spi.SecurityService which principal to return from getCallerPrincipal.

      Annotation used instead of an interface so that JAAS LoginModules can avoid a mandatory runtime dependency on any OpenEJB libraries.

      Attachments

        Activity

          People

            dblevins David Blevins
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: