Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.0.1
-
Unknown
-
N/A
-
N/A
-
Description
When a message is being prepared (in the background thread) from the prepare queue a new execution context (and XWikiContext) is created in order for each message to be prepared in isolation from one another, however this step might need information from the execution context when the sendAsynchronously call was made.
For example, in preparing a message (like rendering a message template), you might need the current user. Right now the current user is guest (null reference) since the context is new and only the wiki ID is set in the XWikiContext.
Attachments
Issue Links
- blocks
-
XWIKI-11957 Improve the WatchList Realtime notifier's performance by queueing operations in a thread
- Closed
-
XWIKI-12090 Clone the ExecutionContext when the mail message is added to the prepare queue
- Closed