Description

Someone managed to put spam on HelpOnAccessControlLists, but when I try to revert the page I get "An error occurred while reverting the page", and when I try to undo the spam by editing I get "You are not allowed to edit this page!"

Details

This Wiki.

Workaround

I edited the page with vi in the filesystem.

Discussion

This is very strange. I can confirm the bug as I had the same trouble, even with having admin rights. But I can't see what's wrong, after removing the spam the page behaves normal. And the spam is just text, nothing special. I also checked the acl processing if it maybe runs into the code samples, but it only processes contiguous #-lines at top of page, the first non-# line breaks it.

By the way, I get this "You are not allowed to edit this page!" when I try to save the new page, not when I start editing. Is that the usual behaviour of ACL? It is very annoying, to be told afterwards that the work I have just done is not allowed.

No, this is also unusual, normally there is a check when starting to edit AND when saving, both should give the same behaviour.

Solution

This strange behaviour was caused by a wrong LocalBadContent page, containing not only spam patterns, but also wiki markup (and that was considered as spam pattern, too!). On that page there must be only some leading #-lines, followed by spam regexes. Use #format plain at top to have nice display.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/StrangeAclBehaviour (last edited 2007-10-29 19:07:31 by localhost)