Page MenuHomePhabricator

WikiCode de + not found+
Closed, ResolvedPublic

Description

So far twice reported in OTRS. I haven't been able to reproduce this myself (switched device language to German) but it seems that there is an issue with the languages_list.xml table lookup.

The interesting part of the stack trace is:
~~~~
java.lang.RuntimeException: WikiCode de + not found+
at org.wikipedia.WikipediaApp.findWikiIndex(WikipediaApp.java:275)
at org.wikipedia.settings.LanguagePreference.<init>(LanguagePreference.java:26)

git SHA: 5df0d7b3

I think we should consider default to English instead of throwing a RuntimeException in this case.

From OTRS:
2014053010015204: https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketID=7580023
2014060410002588: https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=7587157


Version: Alpha
Severity: normal

Details

Reference
bz66140

Event Timeline

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

Also got more reports from other German users in beta1. It was a build issue, which Yuvi fixed in beta2.

This has been happening for some non de users as well, with weird language codes that we don't have. Updated code to not crash. We need to instrument this to figure out which language codes those are, but 'tis ok for now.

Change 137577 had a related patch set uploaded by Yuvipanda:
Don't crash if we can't find a language code

https://gerrit.wikimedia.org/r/137577

Change 137577 merged by Dbrant:
Don't crash if we can't find a language code

https://gerrit.wikimedia.org/r/137577