Affects: latest (v6.1.2) Module: spring-webflux

Continuing from this issue https://github.com/spring-projects/spring-framework/issues/29148 and its fix https://github.com/spring-projects/spring-framework/commit/f9d8367379371f52887a210f1bc8ff8682d596e2 regarding full request URIs including sensitive query parameters being included in mono checkpoints.

This PR sanitises URIs included in - the mono checkpoint in DefaultWebClient.DefaultRequestBodyUriSpec::exchange - the message of WebClientResponseExceptions created via WebClientResponseException::create

Comment From: pivotal-cla

@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.

Comment From: pivotal-cla

@aaronrosser Thank you for signing the Contributor License Agreement!

Comment From: rstoyanchev

Thanks for the pull request. I added a method to WebClientUtils and used it in all places of logging, including one additional one in DefaultClientResponse.

Comment From: aaronrosser

Thanks for the pull request. I added a method to WebClientUtils and used it in all places of logging, including one additional one in DefaultClientResponse.

That was quick. Thank you 😀