Last modified: 2014-02-27 20:46:21 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 T64020, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62020 - API langlinks does not return title of Main Pages
API langlinks does not return title of Main Pages
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.23.0
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-27 20:34 UTC by Sorawee Porncharoenwase
Modified: 2014-02-27 20:46 UTC (History)
4 users (show)

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


Attachments

Description Sorawee Porncharoenwase 2014-02-27 20:34:55 UTC
http://en.wikipedia.org/w/api.php?action=query&prop=langlinks&titles=Main%20Page

returns something like

        <langlinks>
          <ll lang="ar" xml:space="preserve" />
          <ll lang="bg" xml:space="preserve" />
          <ll lang="ca" xml:space="preserve" />

It should be <ll lang="ar" xml:space="preserve">blah blah</ll>

This happens with every wikipedia.
Comment 1 Brad Jorsch 2014-02-27 20:46:21 UTC
All the langlinks on enwiki's main page have no title specified, since an interwiki link with no title specified happens to link to that wiki's main page: https://en.wikipedia.org/w/index.php?title=Template:Main_Page_interwikis&action=edit#.

The API result merely reflects this situation. See https://en.wikipedia.org/wiki/GIGO for details.

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


Navigation
Links