Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10785

Running Operation in Seam context may raise NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6.0-HF09, 5.7.1
    • Component/s: Automation

      Description

      SeamOperationFilter takes care about Seam Context Initialization.

      For doing that, it needs to access HttpServletRequest.
      In usual use cases, the Chain/Operation is run via JAX-RS and the request is automatically available in AutomationContext.

      Unfortunately, when the Operation/Chain is run from Java Code the AutomationContext may not contain any request.
      This is typically the case for the WF GraphRunner.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h