Details
-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
17.0.1.Final, 18.0.0.Final
-
None
Description
If a JAX-RS resource is implemented as a stateless session bean then the validation is done twice: first on the EJB proxy and on the real implementation. This results in two constraint errors although there is basically just one error.
The interesting part: If you resend the request. Then you get a proper result with just one violation. If you do a valid request and then an invalid you get the two violations again (see also the reproduce section).
I created the issue here because I think it is an integration issue with JAX-RS, bean validation and EJBs.