Skip to content

The WebHttpHandlerBuilder copy constructor does not copy the applicationcontext [SPR-16972] #21510

@spring-projects-issues

Description

@spring-projects-issues

Michael Wirth opened SPR-16972 and commented

The copy constructor WebHttpHandlerBuilder(WebHttpHandlerBuilder other) does not clone the applicationcontext.

I guess the constructor was not updated when the applicationcontext was added.

As result my tests fail because of the missing applicationcontext. I try to call an Acutator endpoint to test the security configuration, but this test fails because the EndpointRequestMatcher requires the applicationcontext.
 

https://github.com/spring-projects/spring-framework/blame/master/spring-web/src/main/java/org/springframework/web/server/adapter/WebHttpHandlerBuilder.java#L125


Affects: 5.0.7

Issue Links:

Referenced from: commits 2a15962, e388ddf

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions