Skip to content

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

@pwinckles

Description

@pwinckles

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

  • AWS Java SDK version used: 2.15.21
  • JDK version used: 11.0.7
  • Operating System and version: Fedora 33

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p1This is a high priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions