wellcomecollection / storage-service

🗃️ Managing the safe, long-term storage of our digital collections in the cloud
MIT License
31 stars 5 forks source link

Allow verifying bags with a space in the key #1090

Closed alexwlchan closed 10 months ago

alexwlchan commented 10 months ago

This fixes a small regression; we need this bugfix for https://github.com/wellcomecollection/platform/issues/5708

We definitely used to support this, because we have Miro bags that have spaces in the external identifier/keys. You could make an argument that we shouldn't support this, but there's historical precedent for it and S3 is fine with it, so this patch adds support and proper test coverage for this case.

(In unsurprising news, the bug was in S3Resolvable, a class we thought was simple enough not to require tests – oops.)