Modal upload forms with FileField revert to un-modal on validation error
Bug #1158501 reported by
Steve Baker
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Timur Sufiev |
Bug Description
Any modal form which contains a FileField will revert to being non-modal when the form is re-displayed for a validation error.
Currently this would affect the following forms:
Images and Snapshots -> Create Image
Containers -> Upload Object
This is happening because the ajax POST technique doesn't work for enctype=
A short term workaround could be to start these forms as non-modal, even though this isn't consistent with the look of other forms, is less disconcerting than triggering this bug.
A long term fix would be to implement ajax uploading (google 'django ajax upload'), which may be worthy of a blueprint.
description: | updated |
Changed in horizon: | |
milestone: | havana-1 → havana-2 |
Changed in horizon: | |
milestone: | havana-2 → havana-3 |
summary: |
- Modal upload forms revert to un-modal on validation error + Modal upload forms with FileField revert to un-modal on validation error |
Changed in horizon: | |
milestone: | havana-3 → none |
Changed in horizon: | |
assignee: | Prathyusha Vanka (prathyusha-vanka) → Timur Sufiev (tsufiev-x) |
Changed in horizon: | |
milestone: | none → juno-2 |
Changed in horizon: | |
milestone: | juno-2 → juno-3 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-3 → 2014.2 |
To post a comment you must log in.
Agreed on the problem. The behavior was semi-intentional given the problem with multipart uploads you pointed out. Having a bug to remember this and to address it in the future is good, though.