Skip to content

ErrorPageFilter is not working with redirects in a standalone tomcat #7920

@LeovR

Description

@LeovR

I have a custom ErrorController to overwrite the errorHtml method.

In this method I would like to redirect to a different URL. Therefore, I am using a RedirectView.

If I run this application with the embedded Tomcat I get redirected to the correct URL.
However if the application is deployed to a standalone Tomcat I get the tomcat error page.

I think the ErrorPageFilter isn't handling this case correctly.

I created a GIST over here.

I am using Spring Boot 1.4.3

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions