martin mucha (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *updated* an issue
Hibernate Validator (
https://hibernate.atlassian.net/browse/HV?atlOrigin=eyJpIjoiNjcyYTc3OGE1M...
) / Bug (
https://hibernate.atlassian.net/browse/HV-1949?atlOrigin=eyJpIjoiNjcyYTc3...
) HV-1949 (
https://hibernate.atlassian.net/browse/HV-1949?atlOrigin=eyJpIjoiNjcyYTc3...
) Nondeterministic behavior of HibernateValidator (in springboot?) when both annotation
and xml-based definition are used (
https://hibernate.atlassian.net/browse/HV-1949?atlOrigin=eyJpIjoiNjcyYTc3...
)
Change By: martin mucha (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
)
MWE: [GitHub -
alfonz19/validator-fail-mwe|https://github.com/alfonz19/validator-fail-mwe]
After fresh app start calling validation of annotated DTO will work as expected, and after
that, also validation of DTO having validation defined in validation-constraints.xml will
work as expected. Everything works.
After fresh app start calling validation of DTO having validation defined in
validation-constraints.xml will FAIL, and after that, calling validation of annotated DTO
will also FAIL. Now every validation FAILS.
Biggest problem is, that if xml-based path is hit first, all validations (probably subset
using relevant custom validators) fails.
tested in springboot:
* 2.7.12
* 3.1.0
(
https://hibernate.atlassian.net/browse/HV-1949#add-comment?atlOrigin=eyJp...
) Add Comment (
https://hibernate.atlassian.net/browse/HV-1949#add-comment?atlOrigin=eyJp...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:bbd69a1 )