Horizon image upload with bad Glance CORS config fails with "[object Object]"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Pascal Boutin |
Bug Description
How to reproduce:
Configure Horizon to use direct upload mode:
HORIZON_
In glance-api.conf, make sure cors is enabled but configured badly with a bogus origin:
[cors]
allowed_origin = https:/
Try uploading an image from Horizon.
This should fail with this error in the console:
XMLHttpRequest cannot load https:/
And Horizon will show this error at the top of the image creation popup:
[object Object]
Expected result:
The error message shown should not be the one mentioned above, it's not user friendly.
It can be a generic one like "Unable to create the image." or specific one if we want to inform the user that the provider improperly configured cors support in Glance.
Changed in horizon: | |
assignee: | nobody → Alok Kumar (rajalokan) |
Changed in horizon: | |
milestone: | none → pike-3 |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in horizon: | |
milestone: | pike-3 → pike-rc1 |
Changed in horizon: | |
milestone: | pike-rc1 → pike-rc2 |
tags: | added: pike-backport-potential |
Fix proposed to branch: master /review. openstack. org/487592
Review: https:/