CXF
  1. CXF
  2. CXF-4284

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.11, 2.4.8, 2.5.4, 2.6.1
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      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

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

        Activity

        Hide
        Govindaram PS added a comment -

        Test case

        Show
        Govindaram PS added a comment - Test case
        Hide
        Govindaram PS added a comment -

        Provide more details about the exception to the client

        Show
        Govindaram PS added a comment - Provide more details about the exception to the client
        Hide
        Sergey Beryozkin added a comment -

        thanks for the patches

        Show
        Sergey Beryozkin added a comment - thanks for the patches

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development