Re: Spurious empty files in data/pages/

Thomas Waldmann <[email protected]>
Newsgroups gmane.comp.web.wiki.moin.general
Message-ID <[email protected]>
> Spammers are creating users.  This is not a problem;

You can use textchas against that. Or forbid newaccount action (if you
can create users manually on the shell).

> 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

> Yes, I can get rid of the pages with 'moin maint cleanpage',
> and I do.  But I'd much rather not have the pages
> created in the first place.

Sure. :)
It took a while to find the right place to fix that, that part of the
code is rather twisted.

> 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).


------------------------------------------------------------------------------
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.