-
Bug
-
Resolution: Done
-
Major
-
4.0.0.Beta1
-
None
In a CDI context; when a rest endpoint has parameter validation defined and is also defined as an ejb managed bean, only the first invocation of the endpoint will call the validation code path for validating the rest method parameters. Subsequent calls to the endpoint will not be validated by resteasy/CDI and will only be validated by the CDI context, which may not handle any ConstraintValidationExceptions correctly. In Wildlfly/EAP this manifests itself with the rest endpoint correctly returning a HTTP 400 (Bad Request) status on the first invocation, but subsequent invocations return a HTTP 500 (Internal Server Error) status.
- relates to
-
RESTEASY-1296 Field constraints are not validated if resource is an EJB
- Closed