AWS Multipart Uploads Breaking Hash Comparisons
I am having an issue where larger files in my project are being re-uploaded to AWS every single time I run collectstatic with collectfast installed. Upon inspection, this problem seems to only occur on the files whose ETags have the form XXXXXXXXXX-Y where Y indicates the number of parts in the upload. I think this may be a known issue, so wanted to ask here if there is a known solution. If not, I may be able to help tackle a fix. Thanks!
I'm currently using Python 3.8.3, Django 2.2.13, django-storages 1.9.1, and CollectFast 2.2.0
See also:
- https://www.savjee.be/2015/10/Verifying-Amazon-S3-multi-part-uploads-with-ETag-hash/
- https://stackoverflow.com/a/58239738/458326
This is not a known issue to me, do feel free to address this. collectfast has "live" tests uploading to real buckets, so perhaps those could be adjusted to also include a case that will use multipart uploads.
Thanks for reporting this!