← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1632146] Re: I18N: Horizon returns HTTP 500 when using some specific Accept-Language header values

 

I can't reproduce your issue with the current master of Horizon. I have
a local Horizon installation and when I attempt:

  curl -H 'Accept-Language: es'  http://localhost:8000/auth/login/

I get a Spanish version of the login page, but when I use a language
code that is not translated I just get untranslated English back:

  curl -H 'Accept-Language: da'  http://localhost:8000/auth/login/

Note that Italian and Portugese are both supported languages in Horizon.

** Changed in: horizon
       Status: New => Invalid

** Changed in: horizon
   Importance: Undecided => Medium

-- 
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):
  Invalid

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


References