s3proxy
s3proxy copied to clipboard
S3 Proxy doesn't support CheckSum verification and it throws exception
When trying to upload a stream to S3Proxy, it throws the error message as mentioned below. The stream is uploaded using S3AsyncClient from aws-java-sdk
S3 Proxy Version: 2.6.0 AWS Java SDK Version: 2.30.9
Error Details
- Initially it threw the below error:
org.gaul.s3proxy.S3ProxyHandler - Unknown header x-amz-trailer with URI *****
- After S3Proxy is configured to ignore unknown headers, it throws the below error
Content-Length mismatch, actual: 2052 expected 2000
- The above error is coming from
TransientStorageStrategy | L: 198
Checksum validation has been enabled by default in AWS SDK for Java 2.30.0. It can be disabled by setting those options when building the S3 Client
.requestChecksumCalculation(RequestChecksumCalculation.WHEN_REQUIRED)
.responseChecksumValidation(ResponseChecksumValidation.WHEN_REQUIRED)
Duplicate of #830.