Last modified: 2014-06-16 09:39:12 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 T68657, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66657 - MMV crashes on fileUsage array if namespace is unknown on local wiki
MMV crashes on fileUsage array if namespace is unknown on local wiki
Status: RESOLVED DUPLICATE of bug 66147
Product: MediaWiki extensions
Classification: Unclassified
MultimediaViewer (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://en.wikipedia.org/wiki/Linux_d...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-16 09:23 UTC by Derk-Jan Hartman
Modified: 2014-06-16 09:39 UTC (History)
4 users (show)

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


Attachments

Description Derk-Jan Hartman 2014-06-16 09:23:01 UTC
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
Comment 1 Derk-Jan Hartman 2014-06-16 09:33:06 UTC
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.
Comment 2 Derk-Jan Hartman 2014-06-16 09:39:12 UTC

*** This bug has been marked as a duplicate of bug 66147 ***

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


Navigation
Links