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

The execution context for the prepare/send message step is empty (except for the wiki ID)

    XMLWordPrintable

Details

    • 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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: