Skip to content
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

[S3] content md5 in PutObjectResult #1240

Merged
merged 6 commits into from
Nov 7, 2019
Merged

Conversation

raphkim
Copy link
Contributor

@raphkim raphkim commented Oct 8, 2019

Issue #, if available:
#1236

Description of changes:
Added a line to set content MD5 in PutObjectResult to match the behavior in aws-sdk-java.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@raphkim raphkim added s3 Issues with the AWS Android SDK for Simple Storage Service (S3). Pull Request labels Oct 8, 2019
@raphkim raphkim self-assigned this Oct 8, 2019
@@ -2003,6 +2003,7 @@ public PutObjectResult putObject(PutObjectRequest putObjectRequest)
result.setETag(returnedMetadata.getETag());
result.setMetadata(returnedMetadata);
result.setRequesterCharged(returnedMetadata.isRequesterCharged());
result.setContentMd5(contentMd5);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add unit and/or integration test for contentMd5 to be null, non-null and contentMd5 passed through ObjectMetadata by the developer?

@raphkim raphkim merged commit e2471ab into aws-amplify:develop Nov 7, 2019
@raphkim raphkim deleted the s3-md5 branch November 7, 2019 19:23
awsmobilesdk pushed a commit to awsmobilesdk/aws-sdk-android that referenced this pull request Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s3 Issues with the AWS Android SDK for Simple Storage Service (S3).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants