Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-744

@Asynchronous ejb call should propagate security principal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.6.0.beta1, 1.6.0
    • None
    • None

    Description

      When call sessionContext.getCallerPrincipal in a @Asynchronous method, It return a guest principal.
      Section 4.5.4 of JSR 318 ejb 3.1 spec final release says it should propagate caller security principal.

      > 4.5.4 Security
      > Caller security principal propagates with an asynchronous method invocation. Caller security principal
      > propagation behaves exactly the same for asynchronous method invocations as it does for synchronous
      > session bean invocations.

      Attachments

        1. async-methods.zip
          30 kB
          chunlinyao
        2. async-methods.zip
          63 kB
          chunlinyao

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            chunlinyao chunlinyao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: