Glance v1 api deleting a deleted image gives 403

Bug #1171469 reported by Iccha Sethi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Undecided
Iccha Sethi

Bug Description

https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L841

should be raising HTTPNotFound when trying to delete a deleted image vs a HTTPForbidden. v2 glance api has the correct behavior

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/27263

Changed in glance:
assignee: nobody → Iccha Sethi (iccha-sethi)
status: New → In Progress
Changed in glance:
milestone: none → havana-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/27263
Committed: http://github.com/openstack/glance/commit/7d341dec47743691c9fdfaa61428bce43e8f5d75
Submitter: Jenkins
Branch: master

commit 7d341dec47743691c9fdfaa61428bce43e8f5d75
Author: iccha.sethi <email address hidden>
Date: Mon Apr 22 14:16:56 2013 +0000

    Raise 404 while deleting a deleted image

    Fixes bug 1171469

    Currently the glance v1 api raises a HTTPForbidden when a user tries
    to delete an already deleted image. It should be raising a HTTPNotFound.

    Change-Id: I79f83782739bf40f3baba293cbc17fe04ca020bb

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers