yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #41857
[Bug 1520008] [NEW] JSON Encoder crashes on settings with translations
Public bug reported:
Description:
Horizon uses the REST_API_REQUIRED_SETTINGS key in the local_settings.py
configuration file In order to make the contained configuration
available to the the client side angular code.
Some configurations include ugettext objects which fail to serialize
when passing through http.
eg.
OPENSTACK_IMAGE_BACKEND = {
'image_formats': [
('aki', _('AKI - Amazon Kernel Image'))
]
}
Steps to Reproduce:
* Add 'OPENSTACK_IMAGE_BACKEND' to the 'REST_API_REQUIRED_SETTINGS' key in the local_settings.py.
* call the settings endpoint: http://localhost:8000/api/settings
* Django throws a 500 server exception with the following stack trace: see attached
** Affects: horizon
Importance: Undecided
Status: New
** Tags: configuration horizon translation ugettext
** Attachment added: "django_stacktrace.txt"
https://bugs.launchpad.net/bugs/1520008/+attachment/4525519/+files/django_stacktrace.txt
--
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/1520008
Title:
JSON Encoder crashes on settings with translations
Status in OpenStack Dashboard (Horizon):
New
Bug description:
Description:
Horizon uses the REST_API_REQUIRED_SETTINGS key in the
local_settings.py configuration file In order to make the contained
configuration available to the the client side angular code.
Some configurations include ugettext objects which fail to serialize
when passing through http.
eg.
OPENSTACK_IMAGE_BACKEND = {
'image_formats': [
('aki', _('AKI - Amazon Kernel Image'))
]
}
Steps to Reproduce:
* Add 'OPENSTACK_IMAGE_BACKEND' to the 'REST_API_REQUIRED_SETTINGS' key in the local_settings.py.
* call the settings endpoint: http://localhost:8000/api/settings
* Django throws a 500 server exception with the following stack trace: see attached
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1520008/+subscriptions
Follow ups