Skip to content

No response body in 404 to the bucket that have never been created once. #347

Description

@ksauzz

RiakCS sends no response body in 404 to the bucket that have never been created once.

Official aws ruby client expects a response body in 404. So aws-sdk-ruby's 'bucket.exists?' doesn't work.

get a bucket that have never been created once.

request & response

09:02:10.989 33.33.33.1:53280 -> 33.33.33.10:8080 #1 HTTP 1.1 request: GET http://s3.amazonaws.com/bbbbbbbbb
    User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
    Host: s3.amazonaws.com
    Accept: */*
    Proxy-Connection: Keep-Alive
    Date: Fri, 30 Nov 2012 09:02:10 GMT
    Authorization: AWS QVN3LOEXFBVO5FGMGVKZ:o7bmv8ucmJfAsRjElxF6FwIfPZ8=
09:02:10.997 33.33.33.10:8080 -> 33.33.33.1:53280 #1 HTTP 1.1 response: 404 Not Found
    Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
    Date: Fri, 30 Nov 2012 09:02:10 GMT
    Content-Type: application/xml
    Content-Length: 0
09:02:10.997 33.33.33.10:8080 -> 33.33.33.1:53280 #1 HTTP 1.1 response complete 0B

get a bucket that had been created and deleted.

request & response

09:02:55.228 33.33.33.1:53299 -> 33.33.33.10:8080 #1 HTTP 1.1 request: GET http://s3.amazonaws.com/bbbbbbbbb
    User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
    Host: s3.amazonaws.com
    Accept: */*
    Proxy-Connection: Keep-Alive
    Date: Fri, 30 Nov 2012 09:02:54 GMT
    Authorization: AWS QVN3LOEXFBVO5FGMGVKZ:BR6/565Dc5rtpVLAuLDuH8ZWhjo=
09:02:55.242 33.33.33.10:8080 -> 33.33.33.1:53299 #1 HTTP 1.1 response: 404 Not Found
    Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
    Date: Fri, 30 Nov 2012 09:02:55 GMT
    Content-Type: application/xml
    Content-Length: 187
09:02:55.243 33.33.33.10:8080 -> 33.33.33.1:53299 #1 HTTP 1.1 response body: 187B
<?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist.</Message><Resource>/bbbbbbbbb</Resource><RequestId></RequestId></Error>
09:02:55.243 33.33.33.10:8080 -> 33.33.33.1:53299 #1 HTTP 1.1 response complete 187B

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions