JSON Encoder crashes on settings with translations: "ValueError: Circular reference detected"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Description:
Horizon uses the REST_API_
Some configurations include ugettext objects which fail to serialize when passing through http.
eg.
OPENSTACK_
'image_
('aki', _('AKI - Amazon Kernel Image'))
]
}
Steps to Reproduce:
* Add 'OPENSTACK_
* call the settings endpoint: http://
* Django throws a 500 server exception with the following stack trace: see attached
Impact:
As a workaround, we are setting configuration settings as constants, instead of getting it from the settings service. See
https:/
tags: |
added: config removed: configuration horizon translation ugettext |
tags: | added: configuration |
tags: | added: translation ugettext |
description: | updated |
Changed in horizon: | |
milestone: | ongoing → next |
Changed in horizon: | |
status: | Fix Committed → Invalid |
milestone: | next → none |
I've come across this exact error recently, but not entirely sure how it is triggered.