← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1441776] Re: Get image file passing image id without an image file returns a 204 response

 

The behaviour of returning 204 instead of 404 when image exists but
there is no data associated with it has been introduced due to this bug
report - https://bugs.launchpad.net/glance/+bug/1251055

It's well documented at http://developer.openstack.org/api-ref-
image-v2.html: "If no image data exists, you receive the HTTP 204 status
code."

** Changed in: glance
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1441776

Title:
  Get image file passing image id without an image file returns a 204
  response

Status in OpenStack Image Registry and Delivery Service (Glance):
  Invalid

Bug description:
  Overview:
  Attempting a GET /images/<image_id>/file returns a 204 response. At one point this returned a 404, but that does not appear to be the case anymore.

  Steps to reproduce:
  1)Register a blank image via POST /images
  2)Attempt a GET /images/<image_id>/file
  3)Notice the response is a 204

  Expected:
  A 404 response should be returned

  Actual:
  A 204 response is returned

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1441776/+subscriptions


References