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

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

Closed
spring-issuemaster opened this issue Jun 24, 2018 · 0 comments
Assignees
Milestone

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Jun 24, 2018

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:

  • #21597 Testing actuator endpoint authorization with webclient throws exception ("is duplicated by")
  • #20845 Provide access to ApplicationContext via ServerWebExchange

Referenced from: commits 2a15962, e388ddf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.