appoxy / aws

Amazon Web Services (AWS) Ruby Gem
https://rubygems.org/gems/aws
236 stars 87 forks source link

S3Interface create_bucket fails for USA western, singapore buckets #21

Open tomandersen opened 14 years ago

tomandersen commented 14 years ago

The problem is that you call upcase on the location name "#{headers[:location].to_s.upcase}"

upcase should not be called. But EU needs to be passed in upper case.

See for instance: http://developer.amazonwebservices.com/connect/message.jspa?messageID=156006

If you remove the upcase, you will break anyone who passed in 'eu' as a location. That's the only exception, so you could use an if statement.

tomandersen commented 14 years ago

I fixed it myself by creating a tricky subclass of String that refuses to upcase. Just in case anyone needs a workaround for now.

mfojtik commented 13 years ago

I sent a pull request with patch that is fixing this.