Skip to content

Conversation

marko-bekhta
Copy link
Contributor

When Validator#validateValue() is called, then the root validation context won't have the root bean (i.e. it'll be null), but at the same time, we've already retrieved the value since we are passing it to the validator method, hence no need to check for reachability there.

This affects only the value validation.

Since the causing change was included in the 3.24.1, we'd probably want to backport this to all still maintained versions...

@quarkus-bot quarkus-bot bot added area/hibernate-validator Hibernate Validator area/hibernate-orm Hibernate ORM labels Sep 10, 2025
Copy link

quarkus-bot bot commented Sep 10, 2025

/cc @gsmet (hibernate-orm)

when Validator#validateValue is used then the root validation context won't have the root bean (i.e. it'll be null), but at the same time we've already retrieved the value since we passed it to the validator call, hence no need to check for reachability
@marko-bekhta marko-bekhta force-pushed the fix/i49987-traversable-resolver-for-validatevalue branch from 8ff70d6 to 9751ce1 Compare September 10, 2025 14:07

This comment has been minimized.

@yrodiere
Copy link
Member

Thank you! LGTM.
I'll restart the failing job but I suspect it's a fluke.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bean Validation via JSF broken from 3.24.1+
2 participants