Skip to content

Spring data DomainClassConverter broken with Spring 5.3 in case of missing entity #26296

@clemstoquart

Description

@clemstoquart

Hi Spring team,

I think that I've found an issue migrating a project from Spring 5.2 to 5.3.
Indeed I'm using the DomainClassConverter provided by the Spring Data team and there's a change in the way missing entities are handled.

With Spring 5.2 a missing entity was nicely handled and a 404 HTTP response was sent. To me, that's the expected behavior.

But with Spring 5.3 it returns a 500 HTTP code with a MissingPathVariableException. I think that this new behavior comes from this commit.

I can share more details if needed.
Have a nice day :)

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions