User gets logged out when editing a snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Dashboard (Horizon) |
Confirmed
|
Medium
|
Ayman Mafarja |
Bug Description
Procedure:
1- Go Project -> Compute -> Instances.
2- Create a snapshot of any instance.
3- Go to the newly created snapshot raw in Project -> Compute -> Images.
4- Edit Image -> change disk format to another format, e.g, "ISO".
5- The user logs out directly.
Note: Even admin user faces the same issue.
After analyzing the issue, I found that a "Forbidden HTTP request (403)" is thrown if any user tries to edit the "disk format" attribute if the image is not in "queued" status even though queued images cannot be edited. And that, in turn, logs user out.
Editing disk format of any image won't really change its format. So, it might be true to have an error message when editing disk format attribute. If the case of Forbidden HTTP request is not correct, we can throw any other exception indicating that the content cannot be changed.
I have the version 3.15.0 of openstack.
Changed in glance: | |
assignee: | nobody → Ayman Mafarja (amafarja) |
Changed in horizon: | |
assignee: | nobody → Ayman Mafarja (amafarja) |
Changed in glance: | |
status: | New → In Progress |
Changed in glance: | |
status: | Invalid → New |
tags: | added: uncaught-403 |
Code Review: https:/ /review. openstack. org/#/c/ 569635