Last modified: 2012-04-16 09:16:03 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 T30104, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28104 - Namespace for local pages in interwiki backlinks (iwbacklinks) is missing
Namespace for local pages in interwiki backlinks (iwbacklinks) is missing
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-18 11:39 UTC by MER-C
Modified: 2012-04-16 09:16 UTC (History)
4 users (show)

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


Attachments

Description MER-C 2011-03-18 11:39:24 UTC
http://en.wikipedia.org/w/api.php?action=query&list=iwbacklinks&iwblprefix=wikia&iwbllimit=10&iwblprop=iwtitle|iwprefix

produces the following output:

<iw pageid="390601" ns="2" title="JesseW" iwprefix="wikia" iwtitle="" />
<iw pageid="3349753" ns="1" title="Wookieepedia" iwprefix="wikia" iwtitle="" />
<iw pageid="6476940" ns="4" title="IRC/Tutorial" iwprefix="wikia" iwtitle="" />
<iw pageid="11024996" ns="2" title="Lukecarpenter169/MyWiki" iwprefix="wikia" iwtitle="" />
<iw pageid="11477131" ns="2" title="Astrale01" iwprefix="wikia" iwtitle="" />
<iw pageid="17526118" ns="4" title="WikiProject_User_scripts/Requests/Fulfilled/Archive_3" iwprefix="wikia" iwtitle="" />
<iw pageid="23107110" ns="1" title="Samuel_L._Jackson_filmography" iwprefix="wikia" iwtitle="" />
<iw pageid="25447720" ns="3" title="Gabi_Hernandez" iwprefix="wikia" iwtitle="" />
<iw pageid="26154652" ns="3" title="Hintss/Archive_4" iwprefix="wikia" iwtitle="" />
<iw pageid="9551313" ns="2" title="CWY2190/Top_header" iwprefix="wikia" iwtitle="24:Main_Page" />

The namespace of the local pages is missing. This is inconsistent with, say, http://en.wikipedia.org/w/api.php?action=query&list=embeddedin&eititle=Template:Stub which outputs

<ei pageid="287562" ns="2" title="User:Dunshi" />
<ei pageid="2682250" ns="0" title="Rebujito" />
<ei pageid="5024711" ns="3" title="User talk:Rauterkus" />
<ei pageid="6224191" ns="2" title="User:Phort99" />
<ei pageid="10107597" ns="0" title="Just for You (M People song)" />
<ei pageid="11360578" ns="1" title="Talk:Horse Hollow Wind Energy Center" />
<ei pageid="13967872" ns="2" title="User:Overcow" />
<ei pageid="16819608" ns="2" title="User:TPainRoxx" />
<ei pageid="17996405" ns="0" title="Khabur (Tigris)" />
<ei pageid="19547573" ns="1" title="Talk:Wind power industry" />

and http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Physics
Comment 1 Bryan Tong Minh 2011-03-18 11:54:33 UTC
Should use ApiQueryBase::addTitleInfo() instead of adding the title/ns pairs itself.
Comment 2 Sam Reed (reedy) 2011-03-18 19:15:51 UTC
r84257

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


Navigation
Links