Horizon returns HTTP 500 when using some specific Accept-Language header values

Bug #1632149 reported by Pablo Palácios
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Invalid
Medium
Unassigned

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 Horizon cares about internationalization. Perhaps it may be a solution while Horizon does not fix it.

I've successfully reproduced this bug on Newton and master deploying it with kolla.

I've also reported this bug on horizon: https://bugs.launchpad.net/horizon/+bug/1632146

Tags: horizon
Revision history for this message
Pablo Palácios (ppalacios) wrote :
Revision history for this message
raja (jiangpch) wrote :

Maybe you can check out this link: https://bugs.launchpad.net/kolla/+bug/1637803.

They may be the same thing.

Changed in kolla:
status: New → Triaged
importance: Undecided → Medium
Changed in kolla:
milestone: none → ocata-3
Changed in kolla:
milestone: ocata-3 → ocata-rc1
Changed in kolla:
milestone: ocata-rc1 → pike-1
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

This is OK in master. please try to provide more info.

Changed in kolla:
status: Triaged → Incomplete
Changed in kolla:
milestone: pike-2 → pike-3
Changed in kolla:
milestone: pike-3 → pike-rc1
Changed in kolla:
milestone: pike-rc1 → queens-1
Changed in kolla:
milestone: queens-2 → queens-3
Changed in kolla:
milestone: queens-3 → queens-rc1
Changed in kolla:
milestone: queens-rc1 → queens-rc2
Changed in kolla:
milestone: queens-rc2 → rocky-1
Changed in kolla:
milestone: rocky-2 → rocky-3
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

this should be already fixed. feel free to re-open it.

Changed in kolla:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.