JBoss EAP RESTEASY-2522 - Inconsistent response code when calling JAXRS-based endpoint with BeanValidation Constraints
Issue
The REST endpoint with BeanValidation
is returning HTTP status 500 to a invalid data instead 400.
The problem is the request that return HTTP status 500 generates a ConstraintViolationException
instead a ResteasyViolationException
.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.