https://bugzilla.wikimedia.org/show_bug.cgi?id=30836
Web browser: ---
Bug #: 30836
Summary: meta=siteinfo expose aliases of non-existing special
pages
Product: MediaWiki
Version: 1.19-svn
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
r96617: "Apparently API exposes this, and adding it in wiki text produces a
"blue" link indicating it exists."
meta=siteinfo is showing a alias for an non-existing special page.
The API is calling Language::getSpecialPageAliases() which does not check for
existing of a special page and contains the alias of non-existing special
pages.
I am not sure, if it is the best, to add a exist check to the meta=siteinfo or
Language::getSpecialPageAliases(), because I am not knowing if a caller needs
this information or it is also a bug for other callers.
The problem with the blue link is alreay fixed with 1.18, because
SpecialPageFactory::exist resolved first the alias and than check the special
page. Under 1.17 SpecialPage::exist is checking the canonical name and the
aliases with a or and gives true for this case.
A other way is, to fix this by loading the files the other way round and does
not merge aliases into the array, if the canonical name is not in the english
message file.
Thanks.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l