Skip to content
Snippets Groups Projects
Commit 2d01e016 authored by philenius's avatar philenius
Browse files

improve error handling in bucketExists()

Added call of validate() in bucketExists(). Reason: if the request for
checking whether a bucket exists contains invalid credentials (see unit
test), then S3 does not return an XML response. Instead the HTTP
response body is empty. This in turn caused the validate() function
to throw an XML parsing exception which in turn shadowed the original
error. This behavior is different compared to when we list buckets. In
this case, the response contains an HTTP body with a detailed error
message encoded as XML.
parent 7e4a09d3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment