[pydotorg-www] Errors when attempting to undo wiki spam

Michael Foord mfoord at python.org
Tue Jul 5 19:25:12 CEST 2011


On 05/07/2011 18:23, skip at pobox.com wrote:
> I sent this out yesterday but saw no response.  Maybe the pydotorg list is
> now defunct?  Trying pydotorg-www instead.

pydotorg-www is the correct list for website issues. pydotorg is only 
for private things like ssh keys and also where job postings and Planet 
Python requests go. I can't help you with this though. :-(

Michael

>
> ------------------------------------------------------------------------------
>
> 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?
>
> Thx,
>
> Skip
> _______________________________________________
> pydotorg-www mailing list
> pydotorg-www at python.org
> http://mail.python.org/mailman/listinfo/pydotorg-www


-- 
http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html



More information about the pydotorg-www mailing list