Open callahad opened 10 years ago
We apparently branched into stageUser
when it wasn't appropriate, and improperly staged a new account, despite the user existing for several months.
As soon as Marketplace switches to Firefox Accounts (any day now), we can finally rip out the allowUnverified, forceIssuer, and forceAuthenticate hacks. On hold until then.
Related to Bugzilla Bug 1029014.
Marketplace is using Persona with
allowUnverified
andforceIssuer
.Guigs2 (a MoCo employee) attempted to sign into Marketplace on Fennec using her MoCo email address, only to see this screen after entering a new fallback password and hitting "next:"
The production logs show:
unexpected database failure: Error: Duplicate entry '<redacted>@mozilla.com' for key 'address' -- at /opt/browserid/lib/db/mysql.js:733:13
That error is thrown at lib/db/mysql.js#L733, when
db.createUnverifiedUser
attempts to insert into theemail
table. The only call todb.createUnverifiedUser
is in lib/wsapi/stage_user.js#L78, which either callsdb.stageUser
ordb.createUnverifiedUser
based on the value ofallowUnverified
.In summary, we know:
allowUnverified
.allowUnverified
.Furthermore, after triggering the bug, the production database shows:
email
table of typeprimary
with verified1
user
table with aNULL
password, no failedAuthTries, and a lastPasswordReset in November, 2013.staged
table with a timestamp of today, new_acct1
, and existing_userNULL