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

Fix signer receiving a drained body on retries #620

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aouji
Copy link

@aouji aouji commented Sep 21, 2024

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.

Copy link

codecov bot commented Sep 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.37%. Comparing base (06a6dc8) to head (f6a14dd).
Report is 68 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (06a6dc8) and HEAD (f6a14dd). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (06a6dc8) HEAD (f6a14dd)
integration 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #620       +/-   ##
===========================================
- Coverage   57.29%   15.37%   -41.92%     
===========================================
  Files         315      316        +1     
  Lines        9823     7751     -2072     
===========================================
- Hits         5628     1192     -4436     
- Misses       2902     6476     +3574     
+ Partials     1293       83     -1210     
Flag Coverage Δ
integration ?
unit 15.37% <100.00%> (+2.53%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
opensearchtransport/opensearchtransport.go 87.16% <100.00%> (+2.00%) ⬆️

... and 312 files with indirect coverage changes

@aouji
Copy link
Author

aouji commented Sep 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant