scireum / s3ninja

S3 ninja emulates the Amazon S3 API for developement and test purposes
MIT License
493 stars 91 forks source link

Direct access with URL rejected #149

Closed alborji closed 4 years ago

alborji commented 4 years ago

Dear I use S3Ninja as backend storage for Django. My app can store the files into the S3Ninja bucket and everything is fine. When one image/file is saved into the S3 public bucket, generally I must have access to it via the direct address of it like: http://localhost:9444/s3/bucket/xyz123.png, But when using this address, the request REJECT. For sure, I upload a picture via UI and try to download it via direct URL but the same error accord.

<Error>
<Code>BadDigest</Code>
<Message>Invalid Hash (Expected: 03lFSRbO8HSrIks0aID62u2OEuM=, Found: )</Message>
<Resource>/bucket/images_test.png</Resource>
</Error>

The bucket is public.

jakobvogel commented 4 years ago

Hello @alborji 👋 Many thanks for pointing this out. The error should be fixed in #150.

jakobvogel commented 4 years ago

Please try again with release 6.5