Skip to content

Whitelabeled error page stopped working in 2.6.0 #28770

@lukas-krecan

Description

@lukas-krecan

After upgrading to Spring Boot 2.6.0 default white-labeled error page stopped working. We are using Spring MVC for REST endpoints and when a user accesses a URL that is not mapped to a controller, he just gets 404 with no HTML, in previous version he got an error page.

We actually have custom ErrorAttributes implementation to override the response, but the change in the behavior is there even without the customization. I did not have much time to debug it, but it seems that the redirect to /error does not happen in the new version. Maybe it's an intentional change, but I could not find it anywhere in the release notes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions