-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
ErrorPageSecurityFilter prevents deployment to a Servlet 3.1 compatible container #28790
Comments
Unfortunately I've still a problem along the lines of this issue: I've been trying to make a spring boot application (version 2.6.1) run on tomcat 8.5 (supporting only servlet-api version 3.1). So I'm pulling the (provided) servlet-api 3.1 dependency of the interface So I end up with an I know my configuration is not really straight forward so probably I'm missing something here, but maybe it would be better not to rely on the default implementation for an interface definition the version of which is not fully under spring control (e.g. meant to be provided by the external container). |
@benjamin-sailer I think you're seeing a duplicate of #28902. Can you please try to upgrade to Spring Boot 2.6.2. |
Hi Phil,
thanks a lot, you're right, the issue has been solved via upgrade to 2.6.2.
Best regards,
Benjamin
…--
*********************************************************************
Benjamin Sailer
***@***.***
Public Key Fingerprint: 932A-8379-7517-B5DE-6AD4-DBBB-88BC-96E4-7BDD-C9B0
*********************************************************************
Gesendet: Freitag, 07. Januar 2022 um 20:19 Uhr
Von: "Phil Webb" ***@***.***>
An: "spring-projects/spring-boot" ***@***.***>
Cc: "Benjamin Sailer" ***@***.***>, "Mention" ***@***.***>
Betreff: Re: [spring-projects/spring-boot] ErrorPageSecurityFilter prevents deployment to a Servlet 3.1 compatible container (Issue #28790)
@benjamin-sailer I think you're seeing a duplicate of #28902. Can you please try to upgrade to Spring Boot 2.6.2.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
As identified by this answer on Stack Overflow,
ErrorPageSecurityFilter
extendsHttpFilter
which is new in Servlet 4.0. As we support deployment to Servlet 3.1-compatible containers, we should implementFilter
instead and then cast the request and response toHttpServletRequest
andHttpServletResponse
as needed.The text was updated successfully, but these errors were encountered: