Page MenuHomePhabricator

MMV crashes on fileUsage array if namespace is unknown on local wiki
Closed, ResolvedPublic

Description

https://en.wikipedia.org/wiki/Linux_distributions?debug=true#mediaviewer/File:Linux_Distribution_Timeline.svg

The file usage contains a link to ar.wikipedia.org in the namespace 104.
This namespace is not known to en.wikipedia.org, so when trying to format this link in FileUsage.prototype.getFileUrl(), the script throws an exception inside mw.Title.

Full stacktrace in: http://pastebin.com/xjhMxQsR


Version: master
Severity: normal
URL: https://en.wikipedia.org/wiki/Linux_distributions?debug=true#mediaviewer/File:Linux_Distribution_Timeline.svg

Details

Reference
bz66657

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:13 AM
bzimport added a project: MediaViewer.
bzimport set Reference to bz66657.
bzimport added a subscriber: Unknown Object (MLST).

If you are doing crosswiki links, you should really implement a JS function that can guarantee the same behavior as PHPs Title::makeTitle or Title:makeSafeTitle.

Especially, since https://gerrit.wikimedia.org/r/139592 is basically running into similar problems with the JS Title object.

  • This bug has been marked as a duplicate of bug 66147 ***
Gilles triaged this task as Unbreak Now! priority.Dec 4 2014, 10:11 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Needs Triage.Dec 4 2014, 11:21 AM