Page MenuHomePhabricator

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

Details

Reference
bz13390

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:03 PM
bzimport set Reference to bz13390.

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>