#196: Need "revert all changes by x" tool and "revert guide to state at yyyy-mm- dd hh:mm" tool ------------------------+--------------------------------------------------- Reporter: nick | Owner: dom Type: defect | Status: new Priority: high | Milestone: Component: openguides | Version: svn Severity: major | Keywords: spam commandline ------------------------+--------------------------------------------------- To deal with spam attacks, we need the following two tools: * revert all changes by username (be that a name or a ip) * revert all changes since a certain date
For the former, grab node id and version, delete those from content and metadata, roll node back one version, then copy content over.
For latter, grab last node id and version before date, delete all versions after on metadata and content, roll node back to last version before data, then copy content over.
#196: Need "revert all changes by x" tool and "revert guide to state at yyyy-mm- dd hh:mm" tool ------------------------------+--------------------------------------------- Reporter: nick | Owner: dom Type: defect | Status: new Priority: high | Milestone: Component: openguides | Version: svn Severity: major | Resolution: Keywords: spam commandline | ------------------------------+--------------------------------------------- Comment (by nick):
For the date one, can use "$wiki->list_last_version_before" from Wiki::Toolkit
#196: Need "revert all changes by x" tool and "revert guide to state at yyyy-mm- dd hh:mm" tool ------------------------------+--------------------------------------------- Reporter: nick | Owner: dom Type: defect | Status: new Priority: high | Milestone: Component: openguides | Version: svn Severity: major | Resolution: Keywords: spam commandline | ------------------------------+--------------------------------------------- Comment (by nick):
One half of this now done in wiki toolkit, see bin/wiki-toolkit-revert-to- date
#196: Need "revert all changes by x" tool and "revert guide to state at yyyy-mm- dd hh:mm" tool ------------------------------+--------------------------------------------- Reporter: nick | Owner: dom Type: defect | Status: new Priority: high | Milestone: Component: openguides | Version: svn Severity: major | Resolution: Keywords: spam commandline | ------------------------------+--------------------------------------------- Comment (by nick):
The "delete all entries from user" should probably go in the openguides admin. Confirm page would show all versions to delete, and ask for admin password. Could have a link to it from admin changes list.
#196: Need "revert all changes by x" tool and "revert guide to state at yyyy-mm- dd hh:mm" tool ------------------------------+--------------------------------------------- Reporter: nick | Owner: dom Type: defect | Status: new Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: Keywords: spam commandline | ------------------------------+--------------------------------------------- Changes (by nick):
* priority: high => normal * severity: major => normal
Comment:
Right, initial support for the zap a user's stuff in openguide's svn. Needs tests, support for deleting by host etc, but it's a start
#196: Need "revert all changes by x" tool and "revert guide to state at yyyy-mm- dd hh:mm" tool ------------------------------+--------------------------------------------- Reporter: nick | Owner: dom Type: defect | Status: new Priority: low | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: Keywords: spam commandline | ------------------------------+--------------------------------------------- Changes (by nick):
* priority: normal => low
Comment:
Tests in, but still lacks delete by host. Oh, and the UI might want a bit of a tweak.
#196: Need "revert all changes by x" tool and "revert guide to state at yyyy-mm- dd hh:mm" tool ------------------------------+--------------------------------------------- Reporter: nick | Owner: Nobody Type: defect | Status: new Priority: low | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: Keywords: spam commandline | ------------------------------+--------------------------------------------- Changes (by dom):
* owner: dom => Nobody
#196: Need "revert all changes by x" tool and "revert guide to state at yyyy-mm- dd hh:mm" tool ----------------------------------------------------------+----------------- Reporter: nick | Owner: Nobody Type: enhancement | Status: new Priority: low | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: Keywords: spam commandline, hackfestsummer2007-reviews | ----------------------------------------------------------+----------------- Changes (by Kake):
* keywords: spam commandline => spam commandline, hackfestsummer2007-reviews * type: defect => enhancement
#196: Need "revert all changes by x" tool and "revert guide to state at yyyy-mm- dd hh:mm" tool ----------------------------------------------------------+----------------- Reporter: nick | Owner: Nobody Type: enhancement | Status: closed Priority: low | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: fixed Keywords: spam commandline, hackfestsummer2007-reviews | ----------------------------------------------------------+----------------- Changes (by bob):
* status: new => closed * resolution: => fixed
Comment:
I think this is fixed as we want it.
openguides-tickets@lists.openguides.org