-
Bug
-
Resolution: Done
-
Major
-
3.0.10.Final
-
-
Medium
When using a sub-resource locator method that returns a CDI managed sub-resource class, bean validation occurs twice on the constrained methods contained in that sub-resource class. During the request, first Resteasy's GeneralValidatorImpl class calls its #validateAllParameters method which in turn calls the ValdiatorImpl #validateParameters method. Second, the Hibernate ValidationInterceptor class has its #validateMethodInvocation method called, which again calls the ValidatorImpl #validateParameters method, and thereby causing validation to occur twice and duplicate constraint violation messages to be created.