Page MenuHomePhabricator

Language.php L217: Invalid language code "[[:int:lang] "
Closed, ResolvedPublic


Exception log from fluorine

To reproduce, visit

One of the frames in the call stack is:
Scribunto_LuaSandboxCallback->formatNum('[[:int:lang]]U...', 41)

..which made me suspect Scribunto. But I haven't investigated.

Stack trace attached.

Version: unspecified
Severity: normal




Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 2:59 AM
bzimport set Reference to bz62242.
bzimport added a subscriber: Unknown Object (MLST).
ori created this task.Mar 5 2014, 1:07 AM

My initial reaction would be somebody doing mw.getLanguage( <random parsed wikitext here> ); - not enough error checking to handle the invalid language situation, Language::factory throws a MWException which nobody catches. But haven't looked into it to confirm that.

Change 116984 had a related patch set uploaded by Anomie:
mw.language: Fix exceptions and add tests

Change 116984 merged by jenkins-bot:
mw.language: Fix exceptions and add tests

This should be deployed to WMF wikis with 1.23wmf18, see for the schedule.