S3Interface create_bucket fails for USA western, singapore buckets
tomandersen opened this issue · 2 comments
tomandersen commented
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
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
I sent a pull request with patch that is fixing this.