Closed (fixed)
Project:
Spam
Version:
4.6.x-1.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 May 2005 at 17:19 UTC
Updated:
15 Sep 2005 at 01:54 UTC
I tried deleting the SPAM and now ALL past comments have been deleted. There is no way I did this intentionally, as there are several pages of good comments I would have had to go through to do this.
Is it possible that this was done when I hit "refresh" on one of the comments listing pages? Any suggestion as to how to retrieve the comments? I do not have a fresh site backup.
site is citizenchris.org
Comments
Comment #1
jeremy commentedWhat method did you use to delete the comments?
Comment #2
jayCampbell commentedThis just happened on Bayosphere too. Thousands of comments. We installed the spam module today and selected six caught spams in the list, then hit 'delete these'. The log shows the system deleting all valid comments in the system one at a time, starting with the lowest cid.
I restored using a combination of last night's backup and the output of a perl script run against the mysql logs for today's comments.
My first suspicion was that the bayes filter overreacted by deleting comments based on a too-small dictionary. But, that would just put them in the spam queue, according to our settings, not auto-delete them. Somehow the set of checkboxes got misinterpreted as 'delete everything'.
Ideas? We're under trackback spam attack (and are resorting to hardwired patches to trackback.module in the interim) but certainly can't turn the spam.module back on till we know what happened.
Comment #3
subakva commentedThis just happened to me as well. Since I have the good fortune to have some poker spammers adding a new comment to my site every few seconds, I was able to reproduce the bug:
1. On the admin/comments screen, select a few of the top comments.
2. Select "Delete the selected comments (no confirmation)" from the drop-down list.
3. Click the "Update comments" button.
4. Press F5 to refresh the page.
5. Stupidly, click "OK" when the POST warning dialog pops up.
6. Wail, rend garments, beat breast, and tear hair.
This does not appear to happen with the built-in "Unpublish..." option, so it seems the bug is somehow in the comment deletion code.
(I'm using the 4.5.x version of drupal, but it looks like it's the same problem.)
Comment #4
jgoerzen@changelog.complete.org commentedThat happened to my wife as well (similar incident with refresh). I had to restore the comments table from a backup.
Comment #5
jeremy commentedI am unable to duplicate this in my rewritten version of the module. Please read the release announcement here. Download the new module here.
Comment #6
jeremy commentedPlease upgrade to the rewritten spam module to solve this problem (it will work with Drupal 4.5 and Drupal 4.6).
Comment #7
jeremy commentedUpdating status.
Comment #8
osherl commentedComment #9
(not verified) commentedComment #10
jeremy commentedClosing manually. (I think the project module is broken, it keeps marking them updated when they should be closed.)