Closed Bug 17589 Opened 25 years ago Closed 18 years ago

"delete user" currently not a good idea

Categories

(Webtools Graveyard :: Despot, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dmosedale, Assigned: reed)

Details

Attachments

(1 file)

as it may leave dangling pointers, esp. in the members and changes tables.
Status: NEW → ASSIGNED
This has the side-effect that sending mail to all despot users generates bunches
of bounces.
Can we just get rid of :

375     print MyForm("DeleteUser") . hidden(-name=>"email");
376     print submit("Delete user");

and

381 sub DeleteUser() {
382     my $q = SqlQuote($F::email);
383     Query("delete from users where email = '$q'");
384     Query("insert into syncneeded (needed) values (1)");
385     print h1("OK, $F::email is gone.");
386     print hr();
387     MainMenu();
388 }


This disables the delete user code (better yet comment it out so it can 
come back again easily) We should fix the problems with deleting users, 
but if it causes problems in the tables, and a user can be suspended 
which does the same ammount of good, it is a lower priority then just 
taking out the feature.
I've disabled this as Zach suggested to help avoid database corruption until a
fix happens.  Resetting the bug state to NEW, as I'm not actively working on
this at the moment.
Status: ASSIGNED → NEW
Mass re-assign of despot bugs to endico@mozilla.org, the new owner.  I'm
switching groups to go work on mozilla LDAP integration.
QA Contact: matty
Another try at mass-reassigning my Despot bugs to endico.
Assignee: dmose → endico
reassigning endico's Despot bugs to the default component owner
Assignee: endico → justdave
QA Contact: mattyt-bugzilla → timeless
QA Contact: timeless → despot
Attached patch patch - v1Splinter Review
To fix referential integrity problems, the user must be deleted from both the members and users table. This patch first converts the e-mail address to the id and checks to make sure it is valid. Afterwards, it deletes the user from both the members and users table. In the end, it adds an entry to the changes table acting like the admin has changed the "deleted" flag for the user from 'No' to 'Yes'.
Assignee: justdave → reed
Status: NEW → ASSIGNED
Attachment #247321 - Flags: review?(justdave)
NOTE: You have to set $EnableDeleteUser to 1 for this to actually work. I'd prefer to just drop that variable completely now that the function works. It seems it was added in bug 320105.
OS: Linux → All
Hardware: PC → All
Attachment #247321 - Flags: review?(justdave) → review+
Checking in despot.cgi;
/cvsroot/mozilla/webtools/despot/despot.cgi,v  <--  despot.cgi
new revision: 1.45; previous revision: 1.44
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: