Page MenuHomePhabricator

Race condition in User::addToDatabase on automatic user creation
Closed, ResolvedPublic

Description

Author: nicdumz

Description:
Until today, I never visited de.wikt with my SUL account.

I opened simultaneously two tabs with two de.wikt pages:

  • The first one loaded successfully, creating automatically my account there.
  • The second one spat out a SQL error : ''„User::addToDatabase“. MySQL meldete den Fehler „1062: Duplicate entry 'NicDumZ' for key 2 (10.0.0.234)“.''

Is there is a way to catch nicely this error, to display a nice message, instead of that user-obscure error ? :)


Version: unspecified
Severity: normal

Details

Reference
bz16020

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:20 PM
bzimport set Reference to bz16020.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 16196 has been marked as a duplicate of this bug. ***
  • Bug 17173 has been marked as a duplicate of this bug. ***

Fix proposed: I1f6ef5e6319bfe692fb82a3fa50dc66c9fde8f15

(In reply to comment #3)

Fix proposed: I1f6ef5e6319bfe692fb82a3fa50dc66c9fde8f15

Status Merged

  • Bug 18982 has been marked as a duplicate of this bug. ***