Last modified: 2013-05-22 18:41:26 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 T38975, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36975 - Special pages with system messages having sections "==" show section "[edit]" links even when they cannot be edited
Special pages with system messages having sections "==" show section "[edit]"...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.20.x
All All
: Lowest trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 17046 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-19 14:56 UTC by T. Gries
Modified: 2013-05-22 18:41 UTC (History)
4 users (show)

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


Attachments

Description T. Gries 2012-05-19 14:56:34 UTC
Special pages which usually cannot be edited (example: Special:Upload) with system messages which have sections "==" in it are rendered with section "[edit]" links. This does not make sense and should be repaired.

For example, when you modify [[MediaWiki:Uploadtext]] and change the line

+ To include a file in a page, use a link in one of the following forms:
to 
+ == To include a file in a page, use a link in one of the following forms: ==

then the Special:Upload page is rendered with an "[edit]" link, which does not make sense.

In my view, System messages which are uneditable should never be rendered with section "[edit]" links.

Observed with https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;h=2f5914c2ce4c612920dd96f5ef66e3bd342d2195
Comment 1 Alex Monk 2012-05-19 15:28:58 UTC
Gerrit change #8016
Comment 2 Platonides 2012-05-19 16:30:17 UTC
Confirmed. Bisecting points to 7bfebad30875b852e1e70bde10dbd12fa3e8a673.
Something similar was reported at that time (r70498), but it wasn't
reproducible (and was indeed not shown in Wikipedia).

I don't see where it is affected, since special pages aren't articles nor use
the parser cache.
The only difference in the popts on both revisions is mIsPrintable changing
from NULL to false, a change which shouldn't matter.

Ok, the problem appeared because the this->mTitle->quickUserCan() was never
called, instead of being moved below. That block was then removed in r70499.

After r92703 (d70ad8c), it wouldn't  be possible to show the edit markers,
since $popts->mEditSection would always be false.

But then r86304 (3a0ed7) replaced $wgOut->parse() with MessageCache->parse(),
which didn't have that provision.

Patched in https://gerrit.wikimedia.org/r/8017
Comment 3 Alexandre Emsenhuber [IAlex] 2012-05-30 14:27:32 UTC
Marking as fixed since the change is now merged.
Comment 4 db [inactive,noenotif] 2012-10-01 19:44:08 UTC
*** Bug 17046 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