Last modified: 2013-04-22 16:16:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45849, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43849 - Regression: prop=imageinfo fails for ForeignDBRepo image redirects
Regression: prop=imageinfo fails for ForeignDBRepo image redirects
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.21.x
All All
: High normal with 1 vote (vote)
: ---
Assigned To: Brad Jorsch
: code-update-regression
: 43973 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-11 02:12 UTC by Brad Jorsch
Modified: 2013-04-22 16:16 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brad Jorsch 2013-01-11 02:12:33 UTC
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.
Comment 1 Brad Jorsch 2013-01-14 22:48:55 UTC
*** Bug 43973 has been marked as a duplicate of this bug. ***
Comment 2 Brad Jorsch 2013-01-22 20:38:57 UTC
Merged.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links