Closed Bug 531085 Opened 16 years ago Closed 16 years ago

Can't delete user completely in admin interface

Categories

(addons.mozilla.org Graveyard :: Admin/Editor Tools, defect, P1)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jorgev, Assigned: wenzel)

References

()

Details

Attachments

(2 files)

I'm trying to delete the user in https://addons.mozilla.org/en-US/firefox/admin/users/5032745, but every time I try to delete it, I get this message: "Error deleting user!". I was able to make the user anonymous, but not delete it. As far as I can tell, the user is not an add-on author, so there shouldn't be any problems deleting it. Steps to reproduce: 1) Go to https://addons.mozilla.org/en-US/firefox/admin/users/5032745 2) Scroll to the bottom. 3) Choose "Delete user and remove all their reviews/ratings (must not be an add-on author)" and click on the button. Result: Error deleting user! Expected: The user is deleted. I'm giving this bug high priority because this happens to be a serious spammer posting malware links and I can't remove the user because of this bug.
(In reply to comment #0) > I'm giving this bug high priority because this happens to be a serious spammer > posting malware links and I can't remove the user because of this bug. Anonymizing the account is going to have the same effect from the spammer's point of view - they won't be able to use the account.
(In reply to comment #1) > Anonymizing the account is going to have the same effect from the spammer's > point of view - they won't be able to use the account. True. The real annoyance is having to delete every single review by hand.
Another place with unresolved foreign key dependencies -- I'll fix it in 5.4.
Assignee: nobody → fwenzel
Status: NEW → ASSIGNED
Attached patch Patch, rev. 1Splinter Review
Here you are.
Attachment #414526 - Flags: review?(jbalogh)
Comment on attachment 414526 [details] [diff] [review] Patch, rev. 1 This is a perfect example of why I always rely on German engineering.
Attachment #414526 - Flags: review?(jbalogh) → review+
Removing the reviews from the editor moderation tools made it possible to remove the users (sorry for removing the test cases). As I mentioned to wenzel, removing the reviews directly wasn't possible either. I don't know if this patch fixes the problem entirely, but we should open a new bug if it doesn't.
(In reply to comment #7) > As I mentioned to wenzel, removing the reviews directly wasn't possible either. > I don't know if this patch fixes the problem entirely, but we should open a new > bug if it doesn't. Please do.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: push-needed
Resolution: --- → FIXED
(In reply to comment #8) > (In reply to comment #7) > > As I mentioned to wenzel, removing the reviews directly wasn't possible either. > > I don't know if this patch fixes the problem entirely, but we should open a new > > bug if it doesn't. > > Please do. See bug 531149.
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: