Page MenuHomePhabricator

API prop=imageinfo is not returning correct iicontinue when image title is not the same as the dbkey
Closed, ResolvedPublic


When querying imageinfo

  • for multiple titles (When requesting just one title, it uses iistart for query-continuation.)
  • with thumburl requested
  • for a file with more revisions than the API will output thumburls

the API returns a query-continue that, when used will return the same results and the same query-continue:|File:Samesex%20marriage%20in%20USA.svg&iiurlwidth=120&iilimit=500&iicontinue=Samesex%20marriage%20in%20USA.svg|20110701173547

which gives:

"query-continue": {
    "imageinfo": {
        "iicontinue": "Samesex marriage in USA.svg|20110701173547"
"query": {
    "pages": {


My client picks-up the
"iicontinue": "Samesex marriage in USA.svg|20110701173547"
and sends it back to the API.

Version: 1.22.0
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:55 AM
bzimport set Reference to bz51342.

Why is this of low priority? If many clients use a similar query you DDoS yourself.

Perhaps I should explicitly mention that I do not get the data I requested?

More specifically, the bug appears to be that it is not paying attention to the iicontinue value at all. The same results are being returned whether iicontinue is passed or not.

Ok, I've tracked it down. Gerrit change to be posted shortly.

Change 73762 had a related patch set uploaded by Anomie:
API: Fix prop=imageinfo iicontinue

Change 73762 merged by jenkins-bot:
API: Fix prop=imageinfo iicontinue

Change is now merged. It should be deployed on WMF wikis along with 1.22wmf11, see for the schedule.