Re: Spurious empty files in data/pages/

"Karl O. Pinc" <[email protected]>
Newsgroups gmane.comp.web.wiki.moin.general
Message-ID <1369762148.25002.3@mofo>
On 05/25/2013 04:12:40 PM, Thomas Waldmann wrote:
> > Spammers are creating users.  This is not a problem;
> <snip>
> > However,
> > spammers are attempting to create pages and each
> > time this happens moin leaves an empty file in
> > data/pages/.
> > 
> > The proliferation of these files is causing problems.
> > 
> > It would be nice if moin only allowed a user to
> > attempt page creation when the user has permission,
> > but that's for the future.  Right now I want to
> > know if there's a way I can prevent moin from creating
> > the empty files and plugging up the filesystem.
> 
> See there:
> 
> http://hg.moinmo.in/moin/1.9/rev/6489ec33874d

I applied this patch to 1.9.7 (via hacking the rpm for fedora 19,
moin-1.9.7-1.fc19.src.rpm).  It seems to have solved
the problem.  Thanks!

> > P.S.  FYI.  User creation also creates an empty file
> > in data/pages.  This is an unnecessary use of filesystem
> > resource until and if the user actually puts something
> > on their user page.
> 
> If that is still the case after applying the fix I linked above,
> please
> tell so (or file a bug on moinmo.in wiki).

This also appears to be fixed.

FYI  I wouldn't think this has anything to do with
the patch, but I thought you might want to know:

I'm getting this warning in my logs.

[Tue May 28 13:16:16 2013] [error] 2013-05-28 13:16:16,374 WARNING 
MoinMoin.log:112 /usr/lib/python2.6/site-packages/MoinMoin/user.py:599: 
DeprecationWarning: the method 
passlib.context.CryptContext.hash_needs_update() is deprecated as of 
Passlib 1.6, and will be removed in Passlib 1.8, use 
CryptContext.needs_update() instead.

Running: Scientific Linux release 6.4 (Carbon)

Oddly, python-passlib (v1.5.3 release 1.el6) is _not_
installed.

Regards,

Karl <[email protected]>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.