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

CXF doesn't always generate 415 when POSTing to a resource with an invalid media type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4, 2.3.4
    • 2.4.1, 2.3.5
    • JAX-RS
    • None
    • JDK 1.6

    • Novice

    Description

      When you POST to a resource using an invalid Content-Type of "foo", CXF doesn't return 415.

      Instead, CXF throws a 500 because an IllegalArgumentException is thrown instead of a WebApplicationException.

      Attachments

        1. cxf.post.mediatype.trunk.diff
          3 kB
          Ka-Lok Fung

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            kfung Ka-Lok Fung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: