Author: a.d.bergi
Description:
When I try to get info for a set of pages specified by a generator and that generator returns nothing, I'd expect to get an empty set. But you just get no set!
Example:
http://de.wikipedia.org/w/api.php?action=query&list=allpages&apprefix=DoesNotExist
<api> <query> <allpages /> </query> </api>
http://de.wikipedia.org/w/api.php?action=query&prop=revisions&generator=allpages&gapprefix=DoesNotExist
Actual result:
<api />
But Expected:
<api> <query> <pages /> </query> </api>
Or is it a feature? I think its hard to detect when parsing the result, because you usually step through these elements when trying to get your pageset. Then you never know whether its an error in your request, an server error (api error) or its just empty results.