aws / aws-sdk-java-v2

The official AWS SDK for Java - Version 2
Apache License 2.0
2.18k stars 843 forks source link

Content-MD5 should be automatically added to putObject requests that set retention policies #2155

Open pwinckles opened 3 years ago

pwinckles commented 3 years ago

Describe the Feature

Per the documentation, the Content-MD5 header is required for putObject requests that set retention policies. However, the sdk does not automatically populate this header for these requests.

Please automatically set the SdkInternalExecutionAttribute.HTTP_CHECKSUM_REQUIRED execution attribute on putObject and multipartUpload requests that set a retention policy.

Is your Feature Request related to a problem?

The sdk errors out when putting objects with a legal hold because the Content-MD5 header is not populated, and it could easily be populated automatically.

Proposed Solution

See above.

Your Environment

debora-ito commented 3 years ago

@pwinckles thank you for reaching out. Adding this to our feature requests list.

jordanbraiuka commented 8 months ago

Hi, Is there any update on this issue or timeline for implementation?

Thanks

soujiro32167 commented 3 weeks ago

Got this error as well