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

s3api delete-objects does not set Content-MD5 #400

Closed
pedorro opened this issue Oct 10, 2013 · 3 comments · Fixed by boto/botocore#154
Closed

s3api delete-objects does not set Content-MD5 #400

pedorro opened this issue Oct 10, 2013 · 3 comments · Fixed by boto/botocore#154
Assignees
Labels
bug This issue is a bug.

Comments

@pedorro
Copy link

pedorro commented Oct 10, 2013

$ aws s3api delete-objects --profile myProfile --bucket myBucket --delete '{"Objects":[{"Key":"the/first/key"},{"Key":"the/second/key"}]}'
A client error (InvalidRequest) occurred: Missing required header for this request: Content-MD5
$

I assume the aws-cli tool should be generating the request MD5 automatically right? It's not something I'm supposed to be somehow adding to my request myself.

@ghost ghost assigned garnaat Oct 12, 2013
@garnaat
Copy link
Contributor

garnaat commented Oct 12, 2013

No, we should be adding it for you. Thanks for reporting this.

@garnaat
Copy link
Contributor

garnaat commented Oct 13, 2013

Fixed with above pull request.

@garnaat garnaat closed this as completed Oct 13, 2013
@pedorro
Copy link
Author

pedorro commented Oct 17, 2013

Awesome! Thanks for the fix.

reedobrien pushed a commit to reedobrien/botocore that referenced this issue Dec 21, 2013
* release-0.20.0:
  Bumping version to 0.20.0
  Add support for audio transcoding feature in Amazon Elastic Transcoder
  Bump jmespath version dep to 0.1.0
  Update redshift regions
  Update SWF model with latest documentation
  Updating govcloud endpoints.
  Fix type in comment
  Debug log the reasons we're trying a request
  Reset the stream on retry
  Fix indentation pep8 issue
  Split reset_method into two separate methods
  Change set_stream_logger to set logger at DEBUG
  Reintroduce the upgrade to requests 2.0.0
  Adding a unit test.
  Add a Content-MD5 header to s3api delete-objects requests.  Fixes aws/aws-cli#400.
  Revert update to requests 2.0.0 because httpretty 0.7.0 is broken for Python 3.3.
  Updating requests to 2.0.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants