[jboss-jira] [JBoss JIRA] (WFLY-12668) Bean validation is done twice in JAX-RS application
Daniel Munzinger (Jira)
issues at jboss.org
Mon Oct 14 09:05:00 EDT 2019
Daniel Munzinger created WFLY-12668:
---------------------------------------
Summary: Bean validation is done twice in JAX-RS application
Key: WFLY-12668
URL: https://issues.jboss.org/browse/WFLY-12668
Project: WildFly
Issue Type: Bug
Components: Bean Validation, EJB, REST
Affects Versions: 18.0.0.Final, 17.0.1.Final
Environment: OpenJDK 11, reproduced on Win10 and Ubuntu 18.x
Reporter: Daniel Munzinger
Assignee: Cheng Fang
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.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list