Closed Bug 250877 Opened 21 years ago Closed 18 years ago

editgroups dies with an sql error if a group hierarchy change is resubmitted

Categories

(Bugzilla :: Administration, task)

2.17.7
task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: bugreport, Assigned: mkanat)

References

Details

(Whiteboard: [fixed by blocker])

Attachments

(1 file)

editgroups.cgi compares the new selections with the old choices and generates inserts. If the form is resubmitted with changes already in place (and probably if 2 administrators midair, since we lack detection on admin pages), editusers will try to insert duplicate records and die with mysql errors.
*** Bug 250876 has been marked as a duplicate of this bug. ***
Depends on: 277768
Reassigning bugs that I'm not actively working on to the default component owner in order to try to make some sanity out of my personal buglist. This doesn't mean the bug isn't being dealt with, just that I'm not the one doing it. If you are dealing with this bug, please assign it to yourself.
Assignee: justdave → administration
QA Contact: mattyt-bugzilla → default-qa
We have this problem in several places among admin pages. The problem is that in order to avoid new requests to the DB, we use values saved in hidden fields. So the question is: do we want to remove all these hidden fields and request the DB again to make sure there is no conflict or not (due to performance issues for instance)? Personally, my answer is "yes"!
Severity: minor → normal
Target Milestone: --- → Bugzilla 3.2
Attached patch patch, v1Splinter Review
This is a first step towards the use of $group->update() and $group->_check_foo().
Assignee: administration → LpSolit
Status: NEW → ASSIGNED
Attachment #256859 - Flags: review?(mkanat)
Comment on attachment 256859 [details] [diff] [review] patch, v1 I hate to say it, but I've basically already fixed all of this in bug Bug 354627.
Attachment #256859 - Flags: review?(mkanat) → review-
the SQL crash has gone thanks to bug 354627. There are still some SQL queries in editgroups.cgi which should go away IMO, but that's not part of this bug.
Assignee: LpSolit → mkanat
Status: ASSIGNED → NEW
Depends on: 354627
Whiteboard: [blocker will fix]
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [blocker will fix] → [fixed by blocker]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: