]
Bartosz Baranowski reassigned WFLY-12668:
-----------------------------------------
Assignee: Bartosz Baranowski (was: Cheng Fang)
Bean validation is done twice in JAX-RS application
---------------------------------------------------
Key: WFLY-12668
URL:
https://issues.redhat.com/browse/WFLY-12668
Project: WildFly
Issue Type: Bug
Components: Bean Validation, EJB, REST
Affects Versions: 17.0.1.Final, 18.0.0.Final
Environment: OpenJDK 11, reproduced on Win10 and Ubuntu 18.x
Reporter: Daniel Munzinger
Assignee: Bartosz Baranowski
Priority: Major
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.