-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
Exclude URI query from remaining WebClient checkpoints #31992
Exclude URI query from remaining WebClient checkpoints #31992
Conversation
@aaronrosser Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@aaronrosser Thank you for signing the Contributor License Agreement! |
811832b
to
e6fe130
Compare
(request != null ? " from " + request.getMethod() + " " + getUriToLog(request.getURI()) : ""); | ||
} | ||
|
||
private static URI getUriToLog(URI uri) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this method should go in WebClientUtils
? 🤔
Thanks for the pull request. I added a method to |
That was quick. Thank you 😀 |
Affects: latest (v6.1.2)
Module: spring-webflux
Continuing from this issue #29148 and its fix f9d8367 regarding full request URIs including sensitive query parameters being included in mono checkpoints.
This PR sanitises URIs included in
DefaultWebClient.DefaultRequestBodyUriSpec::exchange
WebClientResponseException
s created viaWebClientResponseException::create