Updating image owner to someone else generates a non-intuitive 404 instead of 403
Bug #1541594 reported by
Luke Wollney
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Bhargavi |
Bug Description
When an image owner updates an image's owner to someone else, the update is prevented (which is a good thing), but with a 404 "Not Found" (not so good), instead of the 403 "Forbidden".
The reason why Glance returns a 404 "Not Found" is because the image is re-fetched after being updated, but as the owner and user differ, the action is forbidden (which get translated into a "not found" because under normal circumstances a forbidden would tip an attacker off to the existence of an image), and the update is never committed.
Changed in glance: | |
assignee: | nobody → Mohammed Ashraf (mohammed-asharaf) |
Changed in glance: | |
assignee: | Bhargavi (challa-bhargavi1) → Bhargavi (bhargavi-c81) |
To post a comment you must log in.
Hi Luke,
$ glance --version
1.2.0
$ glance image-update --owner e1d44906a642448 5b8600f81af2c60 c1 92774b17- 2b8e-4058- b6b0-0a851fed35 c7
403 Forbidden: Access was denied to this resource.: Owner can't be updated by non admin. (HTTP 403)
Can you provide more info on reproducing? Thanks.