You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
Done Looks Like
Replacing normalized_site with site should fix this bug.
The text was updated successfully, but these errors were encountered:
Closes#135
S3 URIs can have bucket names that are capitalized.
`Addressable::URI.normalized_site` converts the site to lower case which
would cause the substitution in `ActiveEncode.sanitize_uri`'s S3 case to
fail from an unmatched Regex. Switching to `Addressable::URI.site`
preserves capitalization and should fix the bug.
Closes#135
S3 URIs can have bucket names that are capitalized.
`Addressable::URI.normalized_site` converts the site to lower case which
would cause the substitution in `ActiveEncode.sanitize_uri`'s S3 case to
fail from an unmatched Regex. Switching to `Addressable::URI.site`
preserves capitalization and should fix the bug.
Description
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".Done Looks Like
normalized_site
withsite
should fix this bug.The text was updated successfully, but these errors were encountered: