Closed Bug 945279 Opened 11 years ago Closed 10 years ago

can't edit profiles if account email is on multiple accounts

Categories

(developer.mozilla.org Graveyard :: Profiles, defect)

x86
macOS
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: groovecoder, Assigned: jezdez, Mentored)

References

Details

(Whiteboard: [easypickings][good first bug])

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?
Severity: normal → minor
Whiteboard: [mentor=groovecoder][easypickings]
Also this lead to page move being broken (if the user has the right) without any error message.
Assignee: nobody → sayan.chowdhury2012
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. ;)
Mentor: lcrouch
Whiteboard: [mentor=groovecoder][easypickings][good first bug] → [easypickings][good first bug]
Assignee: sayan.chowdhury2012 → jezdez
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
Closed: 10 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.