Last modified: 2008-12-23 14:25:08 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 T18769, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16769 - 19 parserTests fail if anon editing of NS_MAIN is disabled
19 parserTests fail if anon editing of NS_MAIN is disabled
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-23 11:58 UTC by Ilmari Karonen
Modified: 2008-12-23 14:25 UTC (History)
0 users

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


Attachments

Description Ilmari Karonen 2008-12-23 11:58:10 UTC
On my test wiki I have $wgGroupPermissions['*']['edit'] set to false.  This causes 19 parser tests to fail, since they expect section edit links to be generated.  The same happens even if one merely disables anon editing of NS_MAIN using $wgNamespaceProtection.

To fix this, the parser tests should either be ran as a sufficiently privileged user (e.g. belonging to a "parsertests" user group, with sufficient permissions to edit NS_MAIN) or the test suite should automatically grant anons such privileges while running the tests.

The 19 failing tests are:

* Bug 6563: Edit link generation for section shown by <includeonly> 
* Bug 6563: Edit link generation for section suppressed by <includeonly>
* Basic section headings
* Section headings with TOC
* Handling of sections up to level 6 and beyond
* TOC regression (bug 9764)
* TOC with wgMaxTocLevel=3 (bug 6204)
* Resolving duplicate section names
* Resolving duplicate section names with differing case (bug 10721)
* Template with sections, __NOTOC__
* Link inside a section heading
* TOC regression (bug 12077)
* Fuzz testing: Parser14
* Fuzz testing: Parser14-table
* Inclusion of !userCanEdit() content
* Out-of-order TOC heading levels
* -{}- tags within headlines (within html for parserConvert())
* Morwen/13: Unclosed link followed by heading
* HHP2.2: Heuristics for headings in preprocessor parenthetical structures
Comment 1 Ilmari Karonen 2008-12-23 14:25:08 UTC
Okay, figured it out myself.  Fixed in r44931.

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


Navigation
Links