Last modified: 2010-05-15 15:33:09 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 T3210, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1210 - Opening specific page causes a timeout
Opening specific page causes a timeout
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.4.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://fi.wikipedia.org/wiki/Template...
: testme
Depends on:
Blocks: 202
  Show dependency treegraph
 
Reported: 2004-12-27 15:49 UTC by Niklas Laxström
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Attachments

Description Niklas Laxström 2004-12-27 15:49:28 UTC
Trying to open page http://fi.wikipedia.org/wiki/Template:P%C3%A4iv%C3%A4malline
causes i timeout. Viewing the source works:
http://fi.wikipedia.org/w/index.php?title=Template:P%C3%A4iv%C3%A4malline&action=edit
. I Suspect that it has something to do with recursion as there is
{{{{PAGENAME}}}} in the source.
Comment 1 Antoine "hashar" Musso (WMF) 2005-01-17 19:09:51 UTC
That cause an infinite loop: the template is calling itself.
So basicly don't use it :o)

What are you trying todo exactly ? 
Comment 2 Niklas Laxström 2005-01-17 21:48:37 UTC
It's used to include short summary according of given date to date page. Look
for example http://fi.wikipedia.org/wiki/1._tammikuuta . I thought infine loops
were hammered out? Also i think brion investigated the page already and got some
weird results.
Comment 3 Rowan Collins [IMSoP] 2005-01-17 22:46:35 UTC
Oh, I get it. For those still staring in confusion, as I was, the trick is that
*once used on a page*, {{PAGENAME}} refers to the page *containing* the
template, not the template itself. So because {{foo}} causes the inclusion of
[[Template:Foo]], not [[Foo]], {{{{PAGENAME}}}} *on anything other than a
Template page* includes the *template* with the same name as the current
article. i.e. within the article [[Bar]] {{{{PAGENAME}}}} is actually equivalent
to {{Template:Bar}}. So that template does make sense, it just eats itself when
you view it directly.

As for the bug, I wonder if the problem is that the code never checks for a page
*directly* including itself, because it seems such an odd thing to happen?
Unless, of course, the bug is caused by something else on the page...

Oh, and I think there's a possible workaround - if the template wasn't stored in
the template namespace (move it to Wikipedia:Päivämalline or something) it
wouldn't be trying to include itself any more (it would be trying to include
Template:Päivämalline, which then wouldn't exist).
Comment 4 Zigger 2005-02-17 15:38:02 UTC
Loop detection seems to have been improved by Brion since 1.4beta6 about a week ago.
Comment 5 Zigger 2005-03-08 16:42:11 UTC
Marking as fixed, because none of the revisions of the supplied URL cause a
timeout any more (fi now running REL1_4rc1+).

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


Navigation
Links