non-admin user get error code "500" if he tries to deactivate the image hosted by admin which have visibility "public"
Bug #1485940 reported by
Piyush Pathak
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Niall Bunting | ||
Kilo |
In Progress
|
High
|
Flavio Percoco | ||
Liberty |
In Progress
|
High
|
Flavio Percoco |
Bug Description
Description:
non-admin user get error code "500" if he tries to deactivate the image hosted by admin which have visibility "public" which is not user friendly it should raise response 403 forbidden.
Steps:
scenario was tested using tempest.
1. image was uploaded by admin user with visibility "public" using api.
2. deactivate request was generated by non-admin user using api.
3. In response header "500" was received.
Expected:
1. even if non-admin user is not allowed to deactivate image uploaded by admin user having visibility "public", response should contain "403 forbidden" to give meaning full information to user that he is not authorized to perform this act.
Changed in glance: | |
assignee: | nobody → Niall Bunting (niall-bunting) |
status: | New → Confirmed |
Changed in glance: | |
status: | Confirmed → In Progress |
Changed in glance: | |
importance: | Undecided → Low |
Changed in glance: | |
importance: | Low → High |
Changed in glance: | |
milestone: | none → mitaka-1 |
Changed in glance: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/215656 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=15c08d822af 0e4f2c488433210 fe240a282b6d86
Committed: https:/
Submitter: Jenkins
Branch: master
commit 15c08d822af0e4f 2c488433210fe24 0a282b6d86
Author: NiallBunting <email address hidden>
Date: Fri Aug 21 14:19:20 2015 +0000
Cause forbidden when deactivating image(non-admin)
If a user tries to deactivate an image that is hosted by the admin that
has public visiblity, it will currently return a 500 error. This changes
that behaviour to return a Forbidden.
Closes-Bug: 1485940 f6c0842bba2b7a2 f3db52784ae
Change-Id: Id7f645fc599e57