Page MenuHomePhabricator

Regression: prop=imageinfo fails for ForeignDBRepo image redirects
Closed, ResolvedPublic

Description

Since I27485bba, prop=imageinfo does not find a page_id for redirects from a ForeignDBRepo. Thus, it uses "0" or the empty string for a page_id, as in https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&titles=File:Convento_Cristo_Decemebr_2008-8.jpg&prop=imageinfo

And it gets worse if the query contains multiple such redirects, as it winds up throwing an exception: https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&titles=File:Convento_Cristo_Decemebr_2008-18.jpg|File:Convento_Cristo_Decemebr_2008-8.jpg&prop=imageinfo

Gerrit changeset I0b298290 will fix this issue.


Version: 1.21.x
Severity: normal

Details

Reference
bz43849

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:35 AM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz43849.
Anomie created this task.Jan 11 2013, 2:12 AM
  • Bug 43973 has been marked as a duplicate of this bug. ***