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

Mail sent from a subwiki to multiple global users may not be sent to all recipients

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 7.1.4, 8.0, 7.4.3, 8.1-milestone-2
    • Fix Version/s: 8.1-rc-1, 7.4.4
    • Component/s: Mail, Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When sending mails using the new Mail API from a subwiki, the iteration over the recipient excludes the recipient from another wiki (the main wiki usually) if those users/groups are not already in the document cache.
      Those excluded users/groups are also badly loaded into the document cache, which could lead to other unexpected side effects (missing profile, unrecognized user, empty groups, ...)

      The cause to this issue is linked to the usage of an inappropriate XWikiContext while loading the user/group documents.

        Attachments

          Activity

            People

            • Assignee:
              softec Denis Gervalle
              Reporter:
              softec Denis Gervalle
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

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