Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create raises error on duplicate bucket name #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gjastrab
Copy link

The source of lib/aws/s3/bucket.rb included a comment that said a AWS::S3::BucketAlreadyExists exception would be raised if you try to create a Bucket with a name that already exists, however this behavior was not present. It seems that Amazon's API does not do this either, even though they mention that as an error response at http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html?RESTCommonResponseHeaders.html

This feature branch adds logic within Bucket.create to do a find on the name, and raise BucketAlreadyExists if a bucket is found, otherwise it will create the bucket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant