Skip to content

MockRestServiceServer to prevent override of ClientHttpRequestFactory in RestClient.Builder  #34013

Closed as not planned
@rstoyanchev

Description

@rstoyanchev

One of the cases in #32338 relates to MockRestServiceServer setting a mock request factory on RestClient.Builder. If that same builder is then passed into an application component that wants to customize the request factory (related to production), it ends up replacing the mock request factory.

It's reasonable to assume that if a RestClient.Builder is passed into MockRestServiceServer then the changes to the request factory should stick, and any further changes can be a no-op.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: invalidAn issue that we don't feel is validtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions