We receive bug reports when someone is unable to edit their profile because it has a duplicate email address to another profile. E.g., https://bugzilla.mozilla.org/show_bug.cgi?id=924758 and https://bugzilla.mozilla.org/show_bug.cgi?id=938319 The underlying error is a MultipleObjectsReturned error from User.objects.get(): https://errormill.mozilla.org/mdn/mdn/group/121218/ We should update the code to handle when a profile shares an email address. 1. Use the profile.user_id for the lookup in UserProfileEditForm.save() 2. (Optional) Show a warning to the user that they have a duplicate account?
Also this lead to page move being broken (if the user has the right) without any error message.
Thanks for looking at this, sayan. Please needinfo? me here if you have questions.
Whiteboard: [mentor=groovecoder][easypickings] → [mentor=groovecoder][easypickings][good first bug]
Hi, I checked for this error by trying to change my email id in the edit profile page, it takes me to a page that says "Permission Denied". Can you tell how can i reproduce this bug?
That might be bug 906883. Which might be a more valuable bug to fix first. ;)
Whiteboard: [mentor=groovecoder][easypickings][good first bug] → [easypickings][good first bug]
This should have been fixed in the current production version of MDN since we've refactored the user profile form to not use the email address anymore to identify a user account.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.