stable

Clone or download

Read-only

Pick active user when email is used by 2+ accounts

Fix request #7513: When two accounts with same emails, notifications are not sent to the right user Wrong behavior: Given I have two accounts with the same email address And the first one is suspended And the second one is active When Tuleap send a tracker notification to the active user Then the notification is sent to the suspended user (thus not sent) This impacts tracker notifications and send message to user (through user profile) Change-Id: I8df8ce9a9a697a2d7d9cc288e9e026de94c870f1

Modified Files

Name
M src/common/autoload.php +4 −3 Go to diff View file
M src/common/mail/Codendi_Mail.class.php +19 −32 Go to diff View file
M src/common/mail/Codendi_Mail_Interface.class.php +0 −1 Go to diff View file
A src/common/mail/RecipientListBuilder.php +119 −0 Go to diff View file
M src/common/user/UserManager.class.php +0 −35 Go to diff View file
M src/www/sendmessage.php +4 −8 Go to diff View file
M tests/simpletest/common/mail/Codendi_MailTest.php +0 −20 Go to diff View file
M tests/simpletest/common/mail/MailManagerTest.php +13 −2 Go to diff View file
A tests/simpletest/common/mail/RecipientListBuilderTest.php +188 −0 Go to diff View file
M tests/simpletest/common/user/UserTestBuilder.php +10 −0 Go to diff View file
M tools/plugins/maillog/include/maillogPlugin.class.php +6 −7 Go to diff View file