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

Fix JAXB-based providers to report 400 for all read-related exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.11, 2.4.8, 2.5.4, 2.6.1
    • JAX-RS
    • None
    • Unknown

    Description

      JAXBElementProvider and JSONProvider already report 400 if JAXBException is thrown.
      Both should also report 400 in case of the base Exceptions uncaught by earlier blocks, and JSONProvider - also in case of XMLStreamException

      Attachments

        1. JSONProviderTest.java.patch
          1 kB
          Govindaram PS
        2. JSONProvider.java.patch
          0.7 kB
          Govindaram PS
        3. AbstractJAXBProvider.java.patch
          2 kB
          Govindaram PS

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: