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
Include Content-MD5 header when body is empty #1985
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1985 +/- ##
==========================================
+ Coverage 92.98% 93% +0.02%
==========================================
Files 60 60
Lines 10784 10784
==========================================
+ Hits 10027 10030 +3
+ Misses 757 754 -3
Continue to review full report at Codecov.
|
@wimglenn - Can you write a test case to make sure the header is present ? |
@swetashre Please check the CI failure. It does not look related to my change at all. |
@swetashre Is there anything more I can do to help get this bug fixed? |
@swetashre Is it possible to get a review or get this patch from February merged? What's the hold-up? |
@wimglenn Conceptually, these changes sound alright to me. We need to do some confirmation on our side around all the exact expectations for the content-md5 of empty bodies. We also have some changes in the works around this code path that will end up conflicting. The changes might end up fixing this issue anyways. We'll follow up on this after those changes go out. |
Hi @wimglenn, just wanted to follow up from our last comment. The changes referenced are now in place. Please feel free to rebase this on top of the develop branch and we can take another look. Thanks! |
@nateprewitt Maybe you can have a look at #2181 - this fix works fine for our issue. |
@nateprewitt @joguSD @swetashre Rebased on develop. We're actually still on a forked botocore, and are blocked from updating boto3 because of this issue, so it would be helpful to get the bugfix upstream.. |
Thanks again for this PR, @wimglenn! I'm merging this into a feature branch for a couple more tweaks and we're going to try to get this merged into live asap. |
* release-1.19.20: Bumping version to 1.19.20 Update to latest models Correct the spelling of endpoints when throwing the Invalid IDMS Endpoint Error Add S3 tests for PutObject empty body Include Content-MD5 header when body is empty (#1985)
@wimglenn @nateprewitt FYI: In Django (and especially For me the issue arised when using empty file (
I suppose making it |
@radekwlsk Yes I would think that's either an error in |
Hi @radekwlsk, thanks for bringing this to our attention! It looks like @wimglenn is correct that this will likely need to be fixed in that project since guessing around file encodings leads to a lot of unexpected failures. |
Thanks for quick response! I've already reported that isssue in |
Closes #1979