cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nigel Hannam (JIRA)" <>
Subject [jira] [Created] (CXF-6155) Exceptions thrown from ParamConverter generate 500 response
Date Sat, 13 Dec 2014 15:13:13 GMT
Nigel Hannam created CXF-6155:

             Summary: Exceptions thrown from ParamConverter generate 500 response
                 Key: CXF-6155
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 3.0.2
            Reporter: Nigel Hannam

JAX-RS 2.0 (section 3.2) indicates that failure to convert a parameter value should trigger
either a 404 or 400, and CXF does this correctly under some circumstances.

When the conversion is performed using a ParamConverter (see InjectionUtils.handleParameter
and it's call to InjectionUtils.createFromParameterHandler), any exception thrown by the ParamConverter
is left unhandled and eventually triggers a 500 response.

At the very least, any IllegalArgumentException from the ParamConverter should be caught and
converted into the appropriate 400/404 error.

This message was sent by Atlassian JIRA

View raw message