Basket emails can be sent to an incorrect email address after primary address changed on FxA
Categories
(Marketing :: Email, defect)
Tracking
(Not tracked)
People
(Reporter: code, Unassigned)
References
Details
Attachments
(1 file)
47.74 KB,
image/jpeg
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0
Steps to reproduce:
- Sign Up with an email address, such as first@firefox.com
- Add a secondary email in that account, suach as second@firefox.com
- Set second@firefox.com as primary email address
- Delete the old one, here is first@firefox, only keep second@firefox.com
- You will find that all emails from firefox or mozilla were sent to first@firefox.com, not second@firefox.com.
Actual results:
All emails from firefox or mozilla were sent to first@firefox.com which is not in the account, and the primary email address in that account never gets any email.
Expected results:
The old email address should not get the emails, and the primary email should get the emails.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
cloud-services-security → mozilla-employee-confidential
It's not clear from the context whether we're ruled out a security issue here; the report makes it sounds like we're straight-up sending emails to the wrong address, possibly by reading the original account address from accounts.email
(where we keep it around for password-hashing purposes) rather than from the emails
table.
Comment 2•6 years ago
|
||
Actually, from the screenshot it looks like this is one of the emails sent from Salesforce rather than one sent directly from FxA, so I wonder if the change in primary email address has not propagated correctly to that system.
Comment 3•6 years ago
|
||
I queried :pmac about this, and this is a paraphrased response:
The marketing team is handling primaryEmailChanged
events, but not by changing
the email field associated with the user. Rather because of the limitations of
the way data is stored in their systems, a record of the email change is stored
in a separate table. When emails are sent, it is the responsibility of the
email writer to join the two tables to ensure the correct email is used,
and it's easy to forget to do this.
Comment 4•6 years ago
|
||
Also note that these are newsletter emails, and a user may well not want their email address for all Mozilla newsletters to change just because their FxA account email did. Having newsletter management in multiple places (www.m.o and FxA e.g.) has made things somewhat confusing for the user in this regard.
Comment 5•6 years ago
|
||
Removing the security sensitive flag, the problem here can be made public.
Updated•6 years ago
|
Description
•