-
Bug
-
Resolution: Done
-
Normal
-
None
-
None
-
False
-
-
False
-
Unset
-
No
-
-
glepage@redhat.com realized that under certain circumstances we were sending duplicate emails to users. Luckily, we didn't send any duplicate emails to customers, and only internal Red Hat users were affected.
This happened because we were not removing the duplicated recipients from the recipient settings that the email connector receives, so if one tenant had for example two behavior groups with email notifications on them, that would generate at least two recipient settings objects.
Then, since the email connector processed them sequentially, we would have two sets of users to send notifications to. Those sets were never combined and therefore the duplicates were not removed, which caused multiple emails being set for the same tenant, one for each set of users.
The fix is relatively easy: change the routing of the email connector a bit so that it aggregates the recipients into a single object, and sends a unique email for all the recipients.