The S3 case for sanitizing uris currently uses Addressable::URI's normalized_site method in a gsub. This method lower cases the site name, so S3 uris with a bucket containing capital letters return the whole "s3://bucket/object_path" uri instead of just "object_path".
Replacing normalized_site with site should fix this bug.
The S3 case for sanitizing uris currently uses Addressable::URI's
normalized_site
method in a gsub. This method lower cases the site name, so S3 uris with a bucket containing capital letters return the whole "s3://bucket/object_path" uri instead of just "object_path".Replacing
normalized_site
withsite
should fix this bug.