https://bugzilla.wikimedia.org/show_bug.cgi?id=21974

           Summary: Changing content language code causes
                    Special:Preferences to permanently throw an exception
                    for some users
           Product: MediaWiki
           Version: 1.16-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Language converter
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Due to a bug in LanguageConverter::getPreferredVariant(), the default option
for user variant ends up being whatever variant the current user already
selected in their preferences. This is usually not a problem, but when the
content language changes, the list of allowed variants changes, and so
Special:Preferences can throw an exception on startup: "Global default 'sr-ec'
is invalid for field variant". 

This makes it impossible for the user to change their preferences. 

The bug in LanguageConverter::getPreferredVariant() is the fact that it doesn't
respect $fromUser=false when there's already a variant cached in
$this->mPreferredVariant which did come from the user. Annotation suggests that
it's been there for years.

Assigning to Philip since I made him the default assignee for language
converter bugs, CCing to Andrew for his thoughts about whether this is an
appropriate failure mode for Special:Preferences.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to