invalid title should not kill entire api query
Closed, ResolvedPublic

Description

Author: cbm.wikipedia

Description:
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).


Version: unspecified
Severity: enhancement

bzimport added a project: MediaWiki-API.Via ConduitNov 21 2014, 10:03 PM
bzimport set Reference to bz13390.
bzimport created this task.Via LegacyMar 16 2008, 1:20 PM
Catrope added a comment.Via ConduitMar 18 2008, 3:18 PM

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>

Add Comment