Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12090

Clone the ExecutionContext when the mail message is added to the prepare queue

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.1-milestone-1
    • Fix Version/s: 7.1-milestone-2, 6.4.5
    • Component/s: Mail
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      Description

      Currently, there are some issues with the implementation done in XWIKI-12058 (which were kind of present even before). The problem is that the execution context needs to be cloned as soon as possible, or we risk having the thread that added an item to the mail process queue terminate before the processing has the chance to execute, thus invalidating the execution context (and the ServletRequest).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                enygma Eduard Moraru
                Reporter:
                enygma Eduard Moraru
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: