Project

General

Profile

Actions

Bug #4838

closed

Foreman is not accessible when browser locale is set to Czech

Added by Lukas Zapletal about 11 years ago. Updated about 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Internationalization
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Steps to reproduce:

1) Setup your first preferred language to unsupported one (e.g. not English or German, but Czech)
2) Access freshly installed foreman instance for the first time
3) Error in the log:

ArgumentError (cannot parse Cookie header: invalid %-encoding (%7B%22authorized%22%3Afalse%2C%22internal%22%3Afalse%
2C%22lang%22%3A%22cs%22%2C%22lang_err_msg%22%3A%22The%20page%20you%20have%20selected%20is%20not%20yet%20available%20
in%20%u010De%u0161tina.%20We%20are%20working%20to%20make%20sure%20all%20content%20is%20available%20in%20%u010De%u016
1tina%2C%20but%20in%20order%20to%20display%20the%20page%20we%20have%20switched%20your%20language%20to%20English.%22%
2C%22hello%22%3A%22Hello%2C%22%2C%22description_placeholder%22%3A%22Enter%20a%20description%22%7D))

Yes, this is a cookie error, but from the text I see (briefly decoded in vim):

ArgumentError (cannot parse Cookie header: invalid %-encoding (%7B%22authorized%22%3Afalse%2C%22internal%22%3Afalse%
2C%22lang%22%3A%22cs%22%2C%22lang_err_msg%22%3A%22The page you have selected is not yet available 
in %u010De%u0161tina. We are working to make sure all content is available in %u010De%u016
1tina%2C but in order to display the page we have switched your language to English.%22%
2C%22hello%22%3A%22Hello%2C%22%2C%22description_placeholder%22%3A%22Enter a description%22%7D))

I get this every time and it started last week (with nightlies). We had to change something in our i18n code, something is apparently messing up my cookies and since I get random hostnames in beaker, it does this every request. Quick googling shows this might be something in jQuery, but I am not sure.

Actions

Also available in: Atom PDF