cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5309) Support Bean Validation API for JAX-RS
Date Fri, 08 Nov 2013 17:00:22 GMT

    [ https://issues.apache.org/jira/browse/CXF-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817451#comment-13817451
] 

Sergey Beryozkin commented on CXF-5309:
---------------------------------------

Hi Andriy, All

I've spent quite a bit of time trying to get some more useful information into the logs, specifically
on how to minimize the amount of the extra information so that the actual violation message
does not get lost in the noise. Here is what I've come up so far, the extra info is *optionally*
added in '()', examples:

1. Non request body parameter validation issue (FormParam, PathParam, etc):

{noformat}
SEVERE: BookStoreWithValidation.addBook.arg1(JAXRS param is FORM("id"), class: String): may
not be null
{noformat}

3. Request Body (example, XML converted to JAXB bean) validation issue

{noformat}
SEVERE: BookStoreWithValidation.addBookDirect.arg0.name(arg0 JAXRS param is REQUEST_BODY,
class: BookWithValidation): may not be null
{noformat}

3. Collection Request Body validation issue

{noformat}
SEVERE: BookStoreWithValidation.addBooksDirect.arg0[0].name(arg0 JAXRS param is REQUEST_BODY,
class: List): may not be null

{noformat}

> 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)

Mime
View raw message