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

Filter is not initialized on startup with Undertow #15771

Closed
ldcsaa opened this issue Jan 24, 2019 · 5 comments
Closed

Filter is not initialized on startup with Undertow #15771

ldcsaa opened this issue Jan 24, 2019 · 5 comments
Labels
status: duplicate A duplicate of another issue

Comments

@ldcsaa
Copy link

ldcsaa commented Jan 24, 2019

spring-boot (v1.5.18.RELEASE) can not init filter on startup while use undertow server, even if I set the property "server.undertow.eager-filter-init=true".
But tomcat server can do it correctly.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 24, 2019
@mbhave
Copy link
Contributor

mbhave commented Jan 24, 2019

@ldcsaa Can you please share a complete, minimal project that reproduces the problem? That should be something that we can unzip or a Git repository that we can clone and then run.

@mbhave mbhave added the status: waiting-for-feedback We need additional information before we can continue label Jan 24, 2019
@snicoll snicoll changed the title spring-boot can not init filter on startup while use undertwo server Filter is not initialized on startup with Undertow Jan 24, 2019
@ldcsaa
Copy link
Author

ldcsaa commented Jan 26, 2019

test-springboot-with-undertow.zip

This is my demo project with undertwo server. 'MyFilter' would be initialized until send first request to 'http://localhsot:8080'.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jan 26, 2019
@wilkinsona
Copy link
Member

server.undertow.eager-filter-init isn't supported in Spring Boot 1.5. The property was introduced in Spring Boot 2.0 to fix issue #9232 which this issue duplicates.

@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed status: feedback-provided Feedback has been provided status: waiting-for-triage An issue we've not yet triaged labels Jan 28, 2019
@ldcsaa
Copy link
Author

ldcsaa commented Jan 29, 2019

Thanks~
But how to let undertow initializes filters on startup just like tomcat in spring-boot-1.5.x ?

@wilkinsona
Copy link
Member

@ldcsaa Please don't make the same comment on multiple issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants