Last modified: 2010-05-15 15:33:19 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 T4375, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2375 - Unclosed transclusion eats next section in rendering, but not in section editing
Unclosed transclusion eats next section in rendering, but not in section editing
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.4.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://eo.wikipedia.org/w/index.php?t...
: need-parsertest, parser
: 1978 (view as bug list)
Depends on: 12652
Blocks: 4899
  Show dependency treegraph
 
Reported: 2005-06-10 18:57 UTC by Zigger
Modified: 2010-05-15 15:33 UTC (History)
2 users (show)

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


Attachments

Description Zigger 2005-06-10 18:57:17 UTC
The URL
http://eo.wikipedia.org/wiki/Vikipedio:Trukoj/Plurnivela_uzado_de_%C5%9Dablonoj
has an unclosed transclusion in section 14, breaking rendering and
section-editing (from bug 2128 #c5).

Test case:

==sec 1==
1st
{{stub|
==sec 2==
2nd
{{stub}}
==sec 3==
3rd


The test page is rendered without most of section 2, including TOC (if there are
more sections) and section-numbering of edit-links.  Editing section 3 then
brings up section 2.
Comment 1 Ævar Arnfjörð Bjarmason 2005-06-10 19:20:49 UTC
This is due to the way MediaWiki garbage collects invalid syntax, it should
probably just output a literal

{{stub|
==sec 2==
2nd

Instead of removing it completely from the output.
Comment 2 lɛʁi לערי ריינהארט 2005-06-10 23:07:51 UTC
Thanks Zigger for debugging the page!

The error described in bug 2128 #c5 refers to &oldid=155874 of
[[eo:Vikipedio:Trukoj/Plurnivela uzado de ŝablonoj]] .
Do not hesitate to revert to this version if you want to experience the
behaviour reported earlier.

The testcase from comment 0 is available at
http://test.leuksman.com/index.php/Bugzilla_2375

Regards Reinhardt [[user:gangleri]]
Comment 3 lɛʁi לערי ריינהארט 2005-06-11 00:09:56 UTC
remark

It might be possible that this behavior could be detected if
"bug 662: Templates inside template parameters"
would be implemented.

The parser should see that the number of opening "{{" is not identical with the
number of "}}".

Anyhow it should be defined what should happen in such cases.

Please compare with
"''bug 885: silent insertion of code by the parser''"

Regards Reinhardt [[user:gangleri]]
Comment 4 Zigger 2005-06-22 18:44:26 UTC
*** Bug 1978 has been marked as a duplicate of this bug. ***

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


Navigation
Links