← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1076534] Re: S3 nova-objectstore does not return error code when deleting or getting not existing object

 

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

** Changed in: nova
    Milestone: None => grizzly-rc1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1076534

Title:
  S3 nova-objectstore does not return error code when deleting or
  getting not existing object

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Now, I am sending one of these  (the funny uuids are bucket and object
  name), the bucket exists:

  
  GET /bucket-dae170c7-4012-4da4-94e7-b86b8572be05/object-ea2a3ed9-03d8-48e4-bd53-04460a66c8d5 HTTP/1.1
  Host: localhost:3333
  Accept-Encoding: identity
  Date: Mon, 12 Nov 2012 06:42:59 GMT
  Content-Length: 0
  Authorization: AWS f0d447ca4b024c36b194eafc74f7a81d:1IKK877wjbek6FVFAZJx2Ejg/b0=
  User-Agent: Boto/2.5.2 (linux2)

  OR

  DELETE /bucket-dae170c7-4012-4da4-94e7-b86b8572be05/object-ea2a3ed9-03d8-48e4-bd53-04460a66c8d5 HTTP/1.1
  Host: localhost:3333
  Accept-Encoding: identity
  Date: Mon, 12 Nov 2012 06:42:59 GMT
  Content-Length: 0
  Authorization: AWS f0d447ca4b024c36b194eafc74f7a81d:L0xe9U1S3bbolebcbwo1I4ArRwg=
  User-Agent: Boto/2.5.2 (linux2)

  
  I got this as response from nova-objectstore:

  HTTP/1.1 404 Not Found
  Content-Type: text/html; charset=UTF-8
  Content-Length: 0
  Date: Mon, 12 Nov 2012 06:42:59 GMT

  The expected response would be similar to this(from swift3):

  HTTP/1.1 404 Not Found
  Content-Type: text/xml; charset=UTF-8
  Content-Length: 149
  Date: Fri, 09 Nov 2012 00:17:53 GMT

  <?xml version="1.0" encoding="UTF-8"?>
  <Error>
    <Code>NoSuchKey</Code>
    <Message>The resource you requested does not exist</Message>
  </Error>

  Both the status code(404) and the ErrorCode : <Code>NoSuchKey</Code>
  are part of the S3 API specification.

  The test system was:
  openstack-nova-objectstore-2012.2-1.fc18

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