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

FEA-1797: Bug fix for the send method's body param on fall through requests #393

Merged

Conversation

evanweible-wf
Copy link
Contributor

@evanweible-wf evanweible-wf commented Apr 26, 2023

Motivation

When using MockTransports.install(fallThrough: true), each request (when .send() is called) is checked against the mocks configured at that time. If no matching mocks are found, the request "falls through" and is converted to a real request. The send() method has an optional body parameter that is lost in this specific corner case - when the request is converted to a real request, the body parameter is not being passed on.

Changes

Forward on the body parameter after switching to a real request.

@aviary2-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@rm-astro-wf rm-astro-wf changed the title Bug fix for the send method's body param on fall through requests FEA-1797 Bug fix for the send method's body param on fall through requests Apr 26, 2023
@bender-wk bender-wk changed the title FEA-1797 Bug fix for the send method's body param on fall through requests FEA-1797: Bug fix for the send method's body param on fall through requests Apr 26, 2023
@evanweible-wf
Copy link
Contributor Author

QA +1
@Workiva/release-management-p

Copy link
Contributor

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from RM

@rmconsole2-wf rmconsole2-wf merged commit f3144f6 into master Apr 26, 2023
@rmconsole2-wf rmconsole2-wf deleted the fix-send-body-param-with-fall-through-requests branch April 26, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants