2012-03-03 23:54:20 |
Chmouel Boudjnah |
description |
InvalidBucketName errors are reported as 400 when it should be set 404. While testing euca-upload-bundle with swift+swift3 we discovered that it did not behave properly and would not create a bucket if it wasn't there because swift3 was coming back with 400 instead of 404. |
While testing euca-upload-bundle it seems that swift3 return InvalidBucketName for a 404 instead of a NoSuchBucket :
+ euca-upload-bundle -b testbucket -m /tmp/bundle.img.manifest.xml
Checking bucket: testbucket
S3ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>InvalidBucketName</Code>
<Message>The specified bucket is not valid</Message>
</Error>
Swift Log
swift 212.64.151.104 212.64.151.104 03/Mar/2012/22/48/02 GET /v1/AUTH_26b42763d83b4bb690dbda8ff131358d/testbucket%3Fformat%3Djson%26limit%3D1 HTTP/1.0 404 - Boto/2.0%20%28linux2%29 91b999b9277a4bb88c5fee2fae4b0f55 - - - txd65aa3dcfb1f4c9f9ce423851ad5f1c3 - 0.0131 - |
|