[pydotorg-www] Errors when attempting to undo wiki spam
Radomir Dopieralski
sheep at sheep.art.pl
Tue Jul 5 19:33:19 CEST 2011
On Tue, Jul 5, 2011 at 19:23, Skip Montanaro <skip at montanaro.dyndns.org> wrote:
>
> I sent this out yesterday but saw no response. Maybe the pydotorg list is
> now defunct? Trying pydotorg-www instead.
>
> ------------------------------------------------------------------------------
>
> Can someone take a look at this problem? I went to fix some spamming of the
> PythonTraining page:
>
> http://wiki.python.org/moin/PythonTraining?action=info
>
> (note the three edits after Paul's last change on June 30 - all are spam).
> When trying to revert to Paul's version I got an Internal Server Error
> message. Looking at the error log I saw this traceback:
>
> [Mon Jul 04 13:28:28 2011] [error] Traceback (most recent call last):
> [Mon Jul 04 13:28:28 2011] [error] File "/usr/lib/pymodules/python2.6/MoinMoin/wsgiapp.py", line 282, in __call__[Mon Jul 04 13:28:28 2011] [error] response = run(context)
> [Mon Jul 04 13:28:28 2011] [error] File "/usr/lib/pymodules/python2.6/MoinMoin/wsgiapp.py", line 88, in run
> [Mon Jul 04 13:28:28 2011] [error] response = dispatch(request, context, action_name)
> [Mon Jul 04 13:28:28 2011] [error] File "/usr/lib/pymodules/python2.6/MoinMoin/wsgiapp.py", line 136, in dispatch
> [Mon Jul 04 13:28:28 2011] [error] response = handle_action(context, pagename, action_name)
> [Mon Jul 04 13:28:28 2011] [error] File "/usr/lib/pymodules/python2.6/MoinMoin/wsgiapp.py", line 195, in handle_action
> [Mon Jul 04 13:28:28 2011] [error] handler(context.page.page_name, context)
> [Mon Jul 04 13:28:28 2011] [error] File "/usr/lib/pymodules/python2.6/MoinMoin/action/revert.py", line 107, in execute
> [Mon Jul 04 13:28:28 2011] [error] revert(pagename, request).render()[Mon Jul 04 13:28:28 2011] [error] File "/usr/lib/pymodules/python2.6/MoinMoin/action/__init__.py", line 214, in render
> [Mon Jul 04 13:28:28 2011] [error] success, self.error = self.do_action()[Mon Jul 04 13:28:28 2011] [error] File "/usr/lib/pymodules/python2.6/MoinMoin/action/revert.py", line 62, in do_action
> [Mon Jul 04 13:28:28 2011] [error] msg = pg.revertPage(rev, comment)[Mon Jul 04 13:28:28 2011] [error] File "/usr/lib/pymodules/python2.6/MoinMoin/PageEditor.py", line 683, in revertPage
> [Mon Jul 04 13:28:28 2011] [error] msg = self.saveText(pg.get_raw_body(), 0, extra=revstr, action="SAVE/REVERT", notify=False, comment=comment)
> [Mon Jul 04 13:28:28 2011] [error] File "/usr/lib/pymodules/python2.6/MoinMoin/PageEditor.py", line 1066, in saveText
> [Mon Jul 04 13:28:28 2011] [error] if not request.user.may.save(self, newtext, rev, **kw):[Mon Jul 04 13:28:28 2011] [error] File "/usr/lib/pymodules/python2.6/MoinMoin/security/antispam.py", line 190, in save
> [Mon Jul 04 13:28:28 2011] [error] raise editor.SaveError(msg)
> [Mon Jul 04 13:28:28 2011] [error] SaveError: Sorry, can not save page because "pbali.com" is not allowed in this wiki.
>
> Alas, there was still a reference to pbali.com. I had to edit the page,
> paste in Paul's last version, go hunting for pbali.com (there were a couple
> other spam links on the page), then save it.
>
> Ignoring for a moment the fact that the PythonTraining page is a complete
> mess (a perfect place to hide spammish links), can someone fix the wiki so
> it doesn't crash in this situation but actually displays the message about
> the failed edit?
Looks like a bug in moin 1.9.3, we are looking into it.
--
Radomir Dopieralski, http://sheep.art.pl
More information about the pydotorg-www
mailing list