Duplicate login in update
A few months ago we had a Fenix Crasher when it was trying to update a login when there was a duplicate in the database. We addressed this by preventing the crash and logging instead on app-services side (#4648).
Looking through the sentry today I saw multiple reports of the duplicate login error which makes me think we should fix the underlying issue. Looking through the report data I saw:
- Multiple users affected
- Each time
has_mirrorwas true, so it seems like this stems from the sync code being able to produce a duplicate login.
┆Issue is synchronized with this Jira Task
My first attempt to narrow this down is checking if the login has form_action_origin or http_realm set. My hunch is that it's one kind or another that generates the duplicates.
Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1866372
Change performed by the Move to Bugzilla add-on.