Closed Bug 1129183 Opened 5 years ago Closed 5 years ago

500 internal server error with duplicate mentor field

Categories

(bugzilla.mozilla.org :: General, defect)

Production
defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: nalexander, Assigned: glob)

Details

Attachments

(1 file)

Repeated 500s when I tried to create a ticket with mentor field ":nalexander, nalexander@mozilla.com, ".

dkl saw:

14:55 dkl|afk: DBD::mysql::db do failed: Duplicate entry '1129177-432887' for key 'bug_mentors_idx' [for Statement "INSERT INTO bug_mentors (bug_id, user_id) VALUES (?, ?)"] at /data/www/bugzilla.mozilla.org/extensions/Review/Extension.pm line 196

This ticket tracks handling this gracefully: presumably, we should submit the *set* of mentors, not the *bag* of mentors, to the DB.
Attached patch 1129183_1.patchSplinter Review
Assignee: nobody → glob
Status: NEW → ASSIGNED
Attachment #8558906 - Flags: review?(dkl)
Comment on attachment 8558906 [details] [diff] [review]
1129183_1.patch

Review of attachment 8558906 [details] [diff] [review]:
-----------------------------------------------------------------

r=dkl
Attachment #8558906 - Flags: review?(dkl) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   e1509eb..bb4b3f6  master -> master
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.