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

Introduce Nullable annotations to override the default handling of empty payloads by JAXB providers

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.10, 2.4.7, 2.5.3, 2.6
    • Fix Version/s: 2.3.10, 2.4.7, 2.5.3, 2.6
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      JAX-RS 1.1 requires JAXB providers to return 400 in case of empty payloads.

      Users have to override the provider in order to get null injected instead, in cases when having empty payloads does not constitute an error for their application which is inconvenient. A simple Nullable annotation (idea: Anthony Muller) can help

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: