Last modified: 2014-09-26 13:25:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28775, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26775 - Users can exceed the max number of pages allowed in a collection ($wgCollectionMaxArticles)
Users can exceed the max number of pages allowed in a collection ($wgCollecti...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-17 14:30 UTC by Helder
Modified: 2014-09-26 13:25 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2011-01-17 14:30:48 UTC
Currently the extension doesn't seems to respect the max number of articles which a book could have ($wgCollectionMaxArticles = 500 [1]).

You can confirm this by going to a big category of Wikipedia, with more than 500 articles (e.g. [[Category:Living_people]]), and adding it to a collection. The extension will add only 500 pages, but then it should display the warning from [[MediaWiki:coll-limit_exceeded_text]] ("Your book is too big. No more pages can be added."), and it doesn't.

Besides this, if you go to another article wich is not in you big book (e.g. [[Sport]])), and add it, your book will have 501 pages and no warning will be displayed.

A user can also easily create a book page ([[Category:Wikipedia books (community books)]]) with more than 500 pages and then load it into [[Special:Book]].

This inconsistent use of $wgCollectionMaxArticles should be fixed.

[1] http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Collection/Collection.php?view=markup#l86
Comment 1 Helder 2011-03-15 13:36:04 UTC
Has anyone noticed this bug?
Comment 2 Bugmeister Bot 2011-08-19 19:12:29 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 3 Mark A. Hershberger 2011-08-22 18:37:46 UTC
This seems easy, but also a non-issue ... it doesn't explode when it said it should?
Comment 4 Helder 2011-08-22 18:52:52 UTC
Is it really necessary to have a variable to set a limit on the number of pages a book could have? Maybe the option could just be dropped since it doesn't works (currently) and nothing bad seems to happens because of that...
Comment 5 Helder 2011-08-22 18:59:26 UTC
(In reply to comment #4)
> Is it really necessary to have a variable to set a limit on the number of pages
> a book could have? Maybe the option could just be dropped since it doesn't
> works (currently) and nothing bad seems to happens because of that...

BTW: If someone fix this limit, I will need to be changed from its default value, since some Wikimedia wikis have books with more than 500 pages. E.g. [[pt:b:Wikilivros:Livros/Livro de receitas]], which has 1993 pages!
Comment 6 Nemo 2014-09-26 05:34:03 UTC
(In reply to Helder from comment #0)
> Besides this, if you go to another article wich is not in you big book (e.g.
> [[Sport]])), and add it, your book will have 501 pages and no warning will
> be displayed.

Is the 501-pages book actually exported? If it is, then I wouldn't bother too much. If it fails, then that's confusing for users.
Comment 7 Helder 2014-09-26 13:25:30 UTC
The export fails with this message:
"Book rendering failed

There was an error while attempting to render your book.

Return to Wikilivros:Página principal."

(the error does not happens after I remove the 501th page from the book and try again)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links