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

When client sends invalid XML, JAX-RS returns 500 instead of 4xx

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5
    • 2.3.8, 2.4.5, 2.5.1
    • JAX-RS
    • Novice

    Description

      When unmarshalling an invalid client request, at org.apache.cxf.jaxrs.provider.AbstractJAXBProvider#handleJAXBException creates a response of 500 Internal Server Error. I think this should be 400 Bad Request or 415 Unsupported Media Type.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            artbristol Art O Cathain
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: