samvera-labs / active_encode

Declare encode job classes that can be run by a variety of encoding services
Other
6 stars 8 forks source link

[FilenameSanitizer] Some S3 uris are not properly sanitized #135

Open masaball opened 2 months ago

masaball commented 2 months ago

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.