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

Wrap exceptions in JAXRSBeanValidationInvoker into Fault so that these exceptions are exposed to ExceptionMapper-s

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.1, 3.0.5
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      As of now only ConstraintValidationExceptions thrown within JAXRSBeanValidationInvoker.invoke(..) method are exposed to ExceptionMapper processing chain.

      But both validation framework and underlying validators can throw any other unchecked non-ConstraintValidationException-s, e.g. ValidationExceptions or any other RuntimeException.

      At the same time only Fault causes are exposed to ExceptionMapper chain within JAXRSInvoker.

      Please kindly wrap any non-Fault exceptions thrown within JAXRSBeanValidationInvoker.invoke(..) method into Fault instances so that they could be properly handled by exception mappers.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              kozlovda Dmitry Kozlov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: