[Mediawiki-api] BREAKING CHANGE in limit=max handling

Roan Kattouw roan.kattouw at home.nl
Mon Feb 25 14:22:51 UTC 2008


In r31258 [1], the output for limit=max was changed. The previous 
implementation returned

<limits limit="500" />

when limit=max was used. However, a request like 
api.php?action=query&list=logevents&prop=revisions&lelimit=max&rvlimit=max&rvprop=content&titles=Foo 
caused the following problems:
* The code would try to overwrite the already set <limits> tag, causing 
a fatal error
* prop=revisions&rvprop=content enforces a stricter limit (200) than 
list=logevents (500)

These issues have been resolved by changing the output format to:

<limits logevents="500" revisions="200" />

This change is expected to be included in the upcoming 1.12 release 
(unless Brion throws it out).

Roan Kattouw (Catrope)

[1] http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=31258



More information about the Mediawiki-api mailing list