Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6155

Exceptions thrown from ParamConverter generate 500 response

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.4, 3.1
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              nigelh Nigel Hannam
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: