Last modified: 2008-03-18 15:18:33 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 T15390, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13390 - invalid title should not kill entire api query
invalid title should not kill entire api query
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-16 13:20 UTC by CBM
Modified: 2008-03-18 15:18 UTC (History)
1 user (show)

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


Attachments

Description CBM 2008-03-16 13:20:46 UTC
If an API query takes more than one title as a parameter, and a few of the titles that are passed are invalid, the data should still be returned for the titles that are valid, and error messages returned for the invalid ones. At present a single invalid title will make the query return only an error object (and, worse, it gives no indication of which title was invalid).
Comment 1 Roan Kattouw 2008-03-18 15:18:33 UTC
Fixed in r32109. Example query:

api.php?action=query&prop=info&titles=Thisdoesntexist|Main_Page|Talk:

<?xml version="1.0" encoding="utf-8"?>
<api>
  <query>
    <normalized>
      <n from="Main_Page" to="Main Page" />
    </normalized>
    <pages>
      <page ns="0" title="Thisdoesntexist" missing="" />
      <page title="Talk:" invalid="" />
      <page pageid="54" ns="0" title="Main Page" touched="2008-03-14T12:50:11Z" lastrevid="464" counter="93" length="101" />
    </pages>
  </query>
</api>

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


Navigation
Links