Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1027

Timeout method gets called with an unspecified caller identity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • AS 4.2.1.GA
    • Security
    • None

      Having a secured bean with a timeout method with @PermitAll, but without an unauthenticatedIdentity will lead to a 'random' identity being used to call the method or no identity at all. The last one leads to EJBAccessExceptions.

      Spec 18.2.2:
      "Since the timeout callback method is an internal method of the bean class, it has no client security context. When getCallerPrincipal is called from within the timeout callback method, it returns the container's representation of the unauthenticated identity."

      We must disallow all calls to a timeout method if unauthenticatedIdentity is not set.

            anil.saldhana Anil Saldanha (Inactive)
            rhn-engineering-cdewolf Carlo de Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: