Bug report

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug report

Russell Blau
Here is a very minor but annoying bug:

http://en.wikipedia.org/w/api.php?action=query&titles=-100&prop=info&redirects=redirects&format=jsonfm

Note that in the response, the title -100 is not quoted in the redirects
value --

"redirects": [
  {
    "from": -100,
    "to": "100 BC"
  }
],

This apparently happens only in JSON, and only for redirects; when I run the
same query without the 'format' parameter, the title is quoted. When I run a
query without the 'redirects' parameter, the title is quoted, even in JSON.

Interpreting the page title as an int instead of a string drives my client
program crazy!  :)

Russ Blau


_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api