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)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.2
People
(Reporter: bugreport, Assigned: mkanat)
References
Details
(Whiteboard: [fixed by blocker])
Attachments
(1 file)
37.53 KB,
patch
|
mkanat
:
review-
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•21 years ago
|
||
*** Bug 250876 has been marked as a duplicate of this bug. ***
Comment 2•20 years ago
|
||
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
Comment 3•20 years ago
|
||
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"!
Updated•18 years ago
|
Severity: minor → normal
Target Milestone: --- → Bugzilla 3.2
Comment 4•18 years ago
|
||
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)
Assignee | ||
Comment 5•18 years ago
|
||
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-
Comment 6•18 years ago
|
||
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.
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•18 years ago
|
Whiteboard: [blocker will fix] → [fixed by blocker]
You need to log in
before you can comment on or make changes to this bug.
Description
•