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.
bzimport set Reference to bz66657.
bzimport added a subscriber: Unknown Object (MLST).
TheDJ created this task.Jun 16 2014, 9:23 AM
TheDJ added a comment.Jun 16 2014, 9:33 AM

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.

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