fog/fog — Issue #743: public_url and bucket names with periods
Author: james
Created: 2012-02-14 14:14:37+00:00
State: open

This is more of a problem with S3 than with fog, but I thought I'd point it out.

There seems to be no tests for the public_url methods, but it contains a regex match to detect wether to use the sub domain method of accessing a bucket or the directory method. I can't really read the regex (write only format), so this is an assumption.

However, if you have periods in your bucket name (which is valid: http://docs.amazonwebservices.com/AmazonS3/latest/dev/BucketRestrictions.html), and then use SSL to access it via the sub domain (which fog does), then you get a certificate failure, which causes all sorts of niggly problems down the line.

I would offer a patch, but I'm not comfortable editing that regex without more info about it. For now, we've just renamed our buckets, but a fix would be better.