← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1251055] Re: A GET on imagedata in glance v2 returns 404 instead of 204 when data does not exist.

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => icehouse-2

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

Title:
  A GET on imagedata in glance v2 returns 404 instead of 204 when data
  does not exist.

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

Bug description:
  A GET on imagedata in glance v2 returns 404 instead of 204 when data
  does not exist.

  See http://docs.openstack.org/api/openstack-image-service/2.0/content
  /get-image-file.html

  curl -i -X GET -H "Content-Type: application/json" -H "X-Auth-Token:
  $AUTH_TOKEN"
  http://localhost:9292/v2/images/e3a8964d-b320-450d-a729-1735dac05ba9/file

  
  HTTP/1.1 404 Not Found
  Content-Length: 150
  Content-Type: text/html; charset=UTF-8
  X-Openstack-Request-Id: req-fcc598de-6012-4576-a74b-833bfd6e1299
  Date: Wed, 13 Nov 2013 20:51:31 GMT

  <html>
   <head>
    <title>404 Not Found</title>
   </head>
   <body>
    <h1>404 Not Found</h1>
    No image data could be found<br /><br />
   </body>
  </html>

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