Skip to content

404 on static resource does not return HTML error page #31569

Closed as not planned
Closed as not planned
@jorgerod

Description

@jorgerod

With the upgrade to Spring Boot 3.2.0-RC2 I think there is the following regression bug:

When a user visits an application, with ProblemDetail support enabled, with a browser and asking for HTML, then Spring should return the standard HTML error page instead of returning a ProblemDetail JSON or XML when static resource does not exist.
This would particularly be important for applications that both serve a browser frontend as well as a REST API.

  • Spring Boot 3.1.5

image

  • Spring Boot 3.2.0-RC2

image

Related issues:

NOTE: Attached is an example
sb3-rest-webmvc.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions