Closed Bug 328615 Opened 19 years ago Closed 19 years ago

Watching the same user twice produces a SQL error

Categories

(Bugzilla :: User Accounts, defect, P2)

2.20
defect

Tracking

()

VERIFIED DUPLICATE of bug 320866

People

(Reporter: timeless, Unassigned)

References

Details

DBD::mysql::st execute failed: Duplicate entry '135075-25155' for key 1 [for Statement "INSERT INTO watch (watched, watcher) main::SaveEmail() called at /opt/webtools/bugzilla/userprefs.cgi line 426 For help, please send mail to the webmaster (sysadmins@mozilla.org), giving this error message and the time and date of the error. steps: try to add the world to a world of watchees. you're bound to get duplicates. expected results: who cares if i try to watch someone twice? i can only possibly watch them once, so just make sure i'm watching that user and move on! This is a blocker. There's no way i'm going to try to convince an SSL bugzilla to give me a usable list so i can sort to exclude things i'm already watching for including another huge list.
Yeah, we definitely know about this. I thought there was already a bug filed for it, but I guess not. This should be a pretty easy fix, just unique-ifiying the array before we run the INSERT calls.
Severity: blocker → major
OS: MacOS X → All
Priority: -- → P2
Hardware: Macintosh → All
Summary: DBD::mysql::st execute failed: Duplicate entry '135075-25155' for key 1 [for Statement "INSERT INTO watch (watched, watcher) → Watching the same user twice produces a SQL error
Target Milestone: --- → Bugzilla 2.20
You know, I actually can't reproduce this on landfill, no matter what I do. And the code for this page is identical all the way back to 2.20. Perhaps this page is customized on bmo or something?
Severity: major → normal
Keywords: qawanted
*** This bug has been marked as a duplicate of 320866 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: qawanted
Resolution: --- → DUPLICATE
Target Milestone: Bugzilla 2.20 → ---
grumble. bmo needs an update.
Status: RESOLVED → VERIFIED
*** Bug 328689 has been marked as a duplicate of this bug. ***
*** Bug 328689 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.