Bug overview description.The same page of results is presented as "1" (eg. post/index/1/foobar) by the web interface, but "0" (eg post/index.json?page=0 by the JSON API.
What part(s) of the site page(s) are affected? JSON post/index API. Possibly XML API as well. Potentially other parts of the query API that are paginated and have a web-interface analog.
What is the expected behavior?Requesting page=1 via API gives the same results as post/index/1 in the web interface
What actual behavior is given instead? Requesting page=1 via API gives the same results as post/index/2 in the web interface
Can you reproduce the bug every time? Yes. I have been seeing it for some time in a few queries, but only now took the time to figure out exactly what was wrong with the produced listings.
What steps did you take to replicate this bug? Fetched a series of result pages for {set:lancearmstrongfavs} from the JSON API, compared the IDs given with those found in the post/index/ pages.
I think it's likely all indices are offset by -1. However, I only tested with the first few page indices (site 1 -> api 0; site 2 -> api 1)
Updated