-
Notifications
You must be signed in to change notification settings - Fork 107
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
Fix signer receiving a drained body on retries #620
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #620 +/- ##
===========================================
+ Coverage 57.29% 67.99% +10.70%
===========================================
Files 315 376 +61
Lines 9823 8862 -961
===========================================
+ Hits 5628 6026 +398
+ Misses 2902 1555 -1347
+ Partials 1293 1281 -12
Flags with carried forward coverage won't be shown. Click here to find out more.
|
e485819
to
f6a14dd
Compare
I'm not sure why integration tests are failing. Doesn't seem related to my change. BTW sorry for the mess I seem to have created in this PR. I can't re-trigger DCO and code coverage checks. Please trigger on your side or let me know if I need to close this and open a new PR |
Thank you for fixing this! Let's deal with the integ test separately.
You will need to fix DCO, |
f6a14dd
to
cff1b90
Compare
DCO is now fixed |
Any ideas why the integ test started failing?
|
The Integration tests runs against latest which was updated 7 days ago to 2.17. I assume the version adds the new field which is currently not present in our spec. We need to add it. Also fails in the dependency updates. |
Signed-off-by: aouji <[email protected]>
cff1b90
to
62ff49c
Compare
Description
When retrying, the body can be drained, and there is already code that resets the request body on retries. The issue was that we were sending the drained request to the signer before reseting the request body, so signature would be based on an empty body
Issues Resolved
#202
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.