Last modified: 2012-04-26 22:02:23 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 T38158, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36158 - <pages> transclusions allow for infinite loop
<pages> transclusions allow for infinite loop
Product: MediaWiki extensions
Classification: Unclassified
ProofreadPage (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: Wikisource
  Show dependency treegraph
Reported: 2012-04-22 11:01 UTC by Beau
Modified: 2012-04-26 22:02 UTC (History)
3 users (show)

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


Description Beau 2012-04-22 11:01:04 UTC
1. Create an index page named Index:1 with a link to Page:1.png.
2. Create a page Page:1.png with the following content:
<pages index="1" from="1.png" to="1.png" />

3. Create a page in the main namespace with the following content:
<pages index="1" from="1.png" to="1.png" />

You will get: Fatal error: Maximum function nesting level of '100' reached,
aborting! This should be handled more gracefully.
Comment 1 Beau 2012-04-22 11:06:08 UTC
I have submitted a change,Ic4e878dec84a4cde8ebb455dee5370b1deaaa4f1,n,z for review. This change disables nested <pages> transclusion completely.
Comment 2 Beau 2012-04-24 14:43:16 UTC
Similar case to bug 36157. It turns out MediaWiki can handle this situation (I had enabled unconfigured xdebug extension), however the result is quite ugly: so I recommend the fix to be merged.

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