-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for checksumAlgorithm #1123
Comments
@miguelfteixeira checksums are indeed currently not supported in S3Mock. it should be possible to add support in a future release, let me look into it. |
Looked into this a bit. When uploading the sample file the body looks like this:
I'll have to test with more data to evaluate the pattern and build an inputstream similar to |
Both "ChecksumAlgorithm" where the SDK calculates the checksum and embeds it into the request body, and checksum headers are supported. Fixes #1123
Both "ChecksumAlgorithm" where the SDK calculates the checksum and embeds it into the request body, and checksum headers are supported. Fixes #1123
Signed requests including checksums need special handling. Fixes #1123
Both "ChecksumAlgorithm" where the SDK calculates the checksum and embeds it into the request body, and checksum headers are supported. Fixes #1123
Signed requests including checksums need special handling. Fixes #1123
While using
checksumAlgorithm
as part of thePutObjectRequest.builder()
I've noticed that when I do agetObject
operation usingS3Mock
not only I don't have access to the generated checksum (viaresponse.response().checksumSHA256()
) but also theresponse.contentEncoding
is set toaws-chunked
. Resulting in not being able to callImageIO.read(response)
when I callPutObject
withchecksumAlgorithm
.Everything works as expected when I remove the call to
checksumAlgorithm
or I use a real S3 Client, as in,response.contentEncoding
isnull
andImageIO.read(response)
works.It's the first I use this library and I've no experience with Kotlin (this is an existing project, I've just added the
checksumAlgorithm
). Is there any plans to provide support for this operation?The text was updated successfully, but these errors were encountered: