[
https://issues.apache.org/jira/browse/CXF-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andriy Redko updated CXF-5309:
------------------------------
Attachment: patch-validation-exception-mapper.txt
Hi Sergey,
While looking for generic Response validation, I found out that our exception
mapper is not complete. It covers only ConstraintViolationException but not
ValidationException (quote from spec: If the exception is of type
javax.validation.ValidationException or any of its subclasses excluding
javax.validation.ConstraintViolationException, then it is mapped to a response
with status code 500 (Internal Server Error)). I have fixed that by renaming
ConstraintViloationExceptionMapper to ValidationExceptionMapper and handling
this additional requirement as well. Please review this patch
(patch-validation-exception-mapper.txt).
Thanks a lot.
> Support Bean Validation API for JAX-RS
> --------------------------------------
>
> Key: CXF-5309
> URL: https://issues.apache.org/jira/browse/CXF-5309
> Project: CXF
> Issue Type: Sub-task
> Components: JAX-RS, JAX-WS Runtime
> Reporter: Sergey Beryozkin
> Attachments: patch-validation-exception-mapper.txt,
> patch-validation-poc.txt, patch-validation-tests.txt
>
>
--
This message was sent by Atlassian JIRA
(v6.1#6144)