yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #57634
[Bug 1632146] [NEW] I18N: Horizon returns HTTP 500 when using some specific Accept-Language header values
Public bug reported:
Trying to access Horizon using an Accept-Language header equals to "pt"
(portuguese) or "it" (italian) returns an HTTP 500 making it impossible
to access the dashboard. I didn't check other languages but I assume
that it is not an italian or portuguese exclusive problem.
Changing browser configuration to use "en", "es", "fr" or "ge" works
well and I'm able to access the dashboard again. But using italian or
portuguese as primary choice for language, even having "good" languages
in the Accept-Language, also makes Horizon returns HTTP 500.
Turning on debug mode on /etc/openstack-dashboard/local_settings.py and
accessing the dashboard again returns the traceback attached to this
report.
Setting USE_I18N to False on local_settings.py fixes this behavior but
certainly this is not the better approach to solve it since this project
cares about internationalization.
I've successfully reproduced this bug on Newton and master deploying it
with kolla.
** Affects: horizon
Importance: Undecided
Status: New
** Tags: i18n
** Attachment added: "django traceback"
https://bugs.launchpad.net/bugs/1632146/+attachment/4759046/+files/traceback
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1632146
Title:
I18N: Horizon returns HTTP 500 when using some specific Accept-
Language header values
Status in OpenStack Dashboard (Horizon):
New
Bug description:
Trying to access Horizon using an Accept-Language header equals to
"pt" (portuguese) or "it" (italian) returns an HTTP 500 making it
impossible to access the dashboard. I didn't check other languages but
I assume that it is not an italian or portuguese exclusive problem.
Changing browser configuration to use "en", "es", "fr" or "ge" works
well and I'm able to access the dashboard again. But using italian or
portuguese as primary choice for language, even having "good"
languages in the Accept-Language, also makes Horizon returns HTTP 500.
Turning on debug mode on /etc/openstack-dashboard/local_settings.py
and accessing the dashboard again returns the traceback attached to
this report.
Setting USE_I18N to False on local_settings.py fixes this behavior but
certainly this is not the better approach to solve it since this
project cares about internationalization.
I've successfully reproduced this bug on Newton and master deploying
it with kolla.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1632146/+subscriptions
Follow ups