S3Interface create_bucket fails for USA western, singapore buckets
tomandersen opened this issue · comments
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.
I fixed it myself by creating a tricky subclass of String that refuses to upcase. Just in case anyone needs a workaround for now.
I sent a pull request with patch that is fixing this.