greghendershott / aws

Racket support for Amazon Web Services.
BSD 2-Clause "Simplified" License
78 stars 25 forks source link

S3 ls/ll operations do not work with upcase bucket names #16

Closed fdr closed 11 years ago

fdr commented 11 years ago

Unfortunately, this is because of hilarious complexity in bucket naming; it's not always correct to use bucket-name.s3.amazonaws.com virtual-hosted notation, as version 1.3 does currently. I have a few buckets that have been sadly unique-ified using the public part of the AWS credential, and the simplest rendition with that results in buckets with upcases.

For these, the non-virtualhosted s3 endpoint needs to be used.

A gory account of the restrictions (including interesting implications for those who want to use SSL and dots in their bucket names, not forbidden by AWS guidelines) is here:

https://github.com/heroku/WAL-E/issues/24#issuecomment-3257283

greghendershott commented 11 years ago

@fdr Thank you for reporting this.

I pushed a fix here at GitHub.

I'll roll this into a version 1.4 update for the Planet package, within a week or so.