Page MenuHomePhabricator

Test failure: "Uncaught TypeError: Cannot read property '0' of undefined" in mw.ImageInfoCache
Closed, ResolvedPublic8 Estimated Story Points

Description

Currently causing mwext-VisualEditor-qunit-karma to fail.

I can consistently reproduce this locally using Chrome 40 with latest MediaWiki + VisualEditor (no other extensions) and running /wiki/Special:JavaScriptTest/qunit/plain in the browser.

TypeError: Cannot read property '0' of undefined
ve.init.mw.ImageInfoCache.processPage @ ve.init.mw.ImageInfoCache.js:40
processResult @ ve.init.mw.ApiResponseCache.js:153

Event Timeline

Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle added subscribers: Jdforrester-WMF, Krinkle.
Krinkle renamed this task from Test failure: "Uncaught TypeError: Cannot read property '0' of undefined" to Test failure: "Uncaught TypeError: Cannot read property '0' of undefined" in mw.ImageInfoCache.Feb 26 2015, 7:55 PM
Krinkle set Security to None.

Change 193268 had a related patch set uploaded (by Alex Monk):
ImageInfoCache: Don't try to access imageinfo result if it's not set

https://gerrit.wikimedia.org/r/193268

Jdforrester-WMF moved this task from To Triage to Blocked on the VisualEditor board.

Change 193268 merged by jenkins-bot:
ImageInfoCache: Don't try to access imageinfo result if it's not set

https://gerrit.wikimedia.org/r/193268