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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.4
    • 3.1, 3.0.5
    • JAX-RS
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: