Bug 193732 - If I log out of trac.webkit.org, I get a page with Russian
Summary: If I log out of trac.webkit.org, I get a page with Russian
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ling Ho
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-01-23 12:36 PST by Simon Fraser (smfr)
Modified: 2019-01-24 20:48 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2019-01-23 12:36:02 PST
Log out of https://trac.webkit.org and reload. You get a Russian page.
Comment 1 Alexey Proskuryakov 2019-01-23 21:14:34 PST
Sounds like a feature.
Comment 2 Alexey Proskuryakov 2019-01-24 14:05:32 PST
Quite curious. I can reproduce by reloading trac in the same private browsing window where I just logged out of it. But it doesn't happen when loading in a new private browsing window.


And in Chrome, Incognito windows share the state, so the Russian localization persists until closing all of those, or quitting Chrome.
Comment 3 Ling Ho 2019-01-24 20:46:49 PST
It turns out the language setting for the "anonymous" user was set to "ru" for some reason. I have fixed it in the database.

trac_webkit=# select * from  trac_webkit.session_attribute where sid='anonymous';
    sid    | authenticated |          name          |      value
-----------+---------------+------------------------+------------------
 anonymous |             0 | dateinfo               | absolute
 anonymous |             0 | default_handler        | BrowserModule
 anonymous |             0 | diff_contextlines      | 8
 anonymous |             0 | diff_ignoreblanklines  | 1
 anonymous |             0 | diff_ignorecase        | 1
 anonymous |             0 | diff_ignorewhitespace  | 1
 anonymous |             0 | language               | ru
 anonymous |             0 | lc_time                | locale
 anonymous |             0 | pygments_style         | tango
 anonymous |             0 | timeline.lastvisit     | 1548384807196637
 anonymous |             0 | timeline.nextlastvisit | 1548384807196637
 anonymous |             0 | tz                     | UTC
(12 rows)
                                                 ^
trac_webkit=# update  trac_webkit.session_attribute set value='en_US' where sid='anonymous' and name='language';
UPDATE 1
trac_webkit=# select * from  trac_webkit.session_attribute where sid='anonymous';
    sid    | authenticated |          name          |      value
-----------+---------------+------------------------+------------------
 anonymous |             0 | dateinfo               | absolute
 anonymous |             0 | default_handler        | BrowserModule
 anonymous |             0 | diff_contextlines      | 8
 anonymous |             0 | diff_ignoreblanklines  | 1
 anonymous |             0 | diff_ignorecase        | 1
 anonymous |             0 | diff_ignorewhitespace  | 1
 anonymous |             0 | language               | en_US
 anonymous |             0 | lc_time                | locale
 anonymous |             0 | pygments_style         | tango
 anonymous |             0 | timeline.lastvisit     | 1548384807196637
 anonymous |             0 | timeline.nextlastvisit | 1548384807196637
 anonymous |             0 | tz                     | UTC
Comment 4 Radar WebKit Bug Importer 2019-01-24 20:48:28 PST
<rdar://problem/47538950>