Closed rajnikumari022 closed 11 months ago
Thanks for reporting the issue @rajnikumari022! I was able to reproduce the problem. I will look into allowing the ContentMD5
header to be passed into the call to fix this issue.
As this been done? This is a blocker for us too.
Now we can put an object
by configuring isObjectLockEnabled
in configure
. Please do find the Ref Doc
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Storage
Amplify Categories
storage
Environment information
Describe the bug
if the default retention period is on for the S3 bucket, storage.put throws 400 Bad request. Below is the response : InvalidRequestContent-MD5 HTTP header is required for Put Object requests with Object Lock parametersAJF7JQCNTAY5VV9GCzbzQMgX1QTytS49W8hcin2KpcwqxmyhL7mXc72SfHktzNeCVGtLwtW91rJ4JWBxlv44xUwclpg=
I tried passing the header in the put object but it doesn't consider it.
Expected behavior
Either it should add the content-MD5 in the header request by default or there should be an option to add it.
Reproduction steps
Create a new bucket with default retention period on. try to do put call with storage.put on the bucket. It will throw 400 bad request error
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response