Page MenuHomePhabricator

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


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

Full stacktrace in:

Version: master
Severity: normal



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).
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 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 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