Closed
Bug 305979
Opened 19 years ago
Closed 19 years ago
Removing a user account who was requested to set a flag at least once may return wrong information
Categories
(Bugzilla :: Administration, task)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: LpSolit, Assigned: LpSolit)
Details
Attachments
(1 file)
|
777 bytes,
patch
|
Wurblzap
:
review+
|
Details | Diff | Splinter Review |
editusers.cgi, action eq "del":
$vars->{'flags'}{'requestee'} = $dbh->selectrow_array(
'SELECT COUNT(*) FROM flags WHERE requestee_id = ?',
undef, $otherUserID);
Inactive flags should not be included. When deleting a user account, the UI may
complain that this user is requested for some flags but following the URL may
give you an empty list, which is very confusing. I had to manually ask the DB to
find the problem.| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.20
| Assignee | ||
Comment 1•19 years ago
|
||
We don't hide the truth, but I think it's better to ignore inactive flags than giving URLs inconsistent with what the message says. Inactive flags whose setter is the user we want to delete is another story. I would tend to ignore them too, but as these flags are not deleted and the setter remains unchanged, we would end in a referential integrity and the admin must be aware of that. Oh dear...
Attachment #193861 -
Flags: review?(wurblzap)
Comment 2•19 years ago
|
||
Is the problem here that I cannot search for inactive flags? Is this the reason that following the URL may result in an empty list?
| Assignee | ||
Comment 3•19 years ago
|
||
Yes, the URL will show you active flags only (as expected), so inactive ones shouldn't be included in the count.
Comment 4•19 years ago
|
||
Comment on attachment 193861 [details] [diff] [review] patch, v1 Tested; works. I can't think of a szenario to make something like bug 223878 happen. Even if, then it's not caused by this patch here but by user deletion itself.
Attachment #193861 -
Flags: review?(wurblzap) → review+
Updated•19 years ago
|
Flags: approval?
Flags: approval2.20?
Updated•19 years ago
|
Flags: approval?
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
| Assignee | ||
Comment 5•19 years ago
|
||
tip: Checking in editusers.cgi; /cvsroot/mozilla/webtools/bugzilla/editusers.cgi,v <-- editusers.cgi new revision: 1.106; previous revision: 1.105 done 2.20: Checking in editusers.cgi; /cvsroot/mozilla/webtools/bugzilla/editusers.cgi,v <-- editusers.cgi new revision: 1.90.2.7; previous revision: 1.90.2.6 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•