Last modified: 2013-08-22 14:55:55 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 T44159, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42159 - Option to disable automatic language detection for anonymous users
Option to disable automatic language detection for anonymous users
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Niklas Laxström
:
Depends on:
Blocks: uls-deployment 42186
  Show dependency treegraph
 
Reported: 2012-11-15 19:49 UTC by Daniel Kinzler
Modified: 2013-08-22 14:55 UTC (History)
15 users (show)

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


Attachments

Description Daniel Kinzler 2012-11-15 19:49:27 UTC
ULS should have an option to disable language detection for anonymous users, in a way that 

a) applies no language detection and instead uses the content language 
c) initially does not set (and if necessary, deletes) any ULS cookies
b) but still shows the ULS widget to anonymous users
d) sets an ULS cookie if and when the user selected a language manually using the ULS widget (or by using the setlang=xx URL parameter).

This was suggested by Erik Möller as a solution to bug 41451, see comment 47 there. It allows ULS to be used an environment such as the Wikimedia cluster, where web caches are used, and these caches can be configured to not cache responses to queries the contain specific cookies.

This is a nicer, but less robust, approach than bug 42157.
Comment 1 Daniel Kinzler 2012-11-16 10:39:27 UTC
Wo probably need to send some additional cache control headers. So:

e) if the ULS cookie is received (or being set), send cache-control headers that cause squid not to cache the response.
Comment 2 Daniel Kinzler 2012-11-22 15:29:50 UTC
One important part of the solution (and possibly the only thing needed) would be to set 

$wgCacheVaryCookies[] = 'language';
Comment 3 Silke Meyer (WMDE) 2012-11-22 16:28:09 UTC
no commitment in sprint 24
Comment 4 Santhosh Thottingal 2013-05-24 11:13:56 UTC
This was fixed in Ia8d21c394ff5efac0ce94664710c97dc3b74ec18

$wgULSAnonCanChangeLanguage and $wgULSLanguageDetection are available.
Comment 5 denny vrandecic 2013-08-22 14:55:55 UTC
Closed older resolved bugs as verified.

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


Navigation
Links