Types of form values are lost when transferred using multipart/form-data
Bug #1613703 reported by
Timur Sufiev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Timur Sufiev |
Bug Description
Django REST wrappers defined on Horizon's server-side to receive data from Angular modal forms rely on field values being transferred along with their type using JSON format, i.e. number widgets produce '{number_field: 42}', boolean fields produce '{boolean_field: true} etc. This assumption becomes wrong when a FileField is present in such form, because to transfer it browser has to use 'Content-Type: multipart/
This becomes a real problem as soon as Glance V2 API is fully supported by Horizon, since Glance V2 requires that image properties types obey the types defined in the schema.
Changed in horizon: | |
importance: | Undecided → High |
milestone: | none → newton-3 |
Changed in horizon: | |
assignee: | nobody → Timur Sufiev (tsufiev-x) |
status: | New → In Progress |
To post a comment you must log in.
The fix is being worked on at https:/ /review. openstack. org/#/c/ 353987