Validation on classes with a bidirectional relationship cause stack overflow on 6.1.x

Description

We recently upgraded one of our microservices from Spring Boot 2.2 to 2.3 and ran into a bug with hibernate validator that seems to affect all 6.1.x versions. Here is an example that reproduces the issue.


This will trigger a stack overflow...

 

Environment

Spring Boot 2.3.2, Java 11

Activity

Show:
Guillaume Smet
October 2, 2020, 7:22 AM

You're welcome. Thanks for your feedback.

Thom
October 2, 2020, 12:04 AM

Tested it, it works now in our application. Thanks a lot!

Thom
September 30, 2020, 5:25 PM

Great! I’ll try to test our software using the new version tomorrow.

Guillaume Smet
September 30, 2020, 12:26 PM

That was an ugly one, thanks for the report and the test case.

I have released 6.1.6.Final. It should be synced to Maven Central sometime tomorrow.

Guillaume Smet
September 30, 2020, 8:38 AM

Yeah, it's a bug in HV, I have a fix, running the whole test suite right now then will push and release.

Fixed

Assignee

Guillaume Smet

Reporter

Chris Westmorland

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major