cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ka-Lok Fung (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-3531) CXF doesn't always generate 415 when POSTing to a resource with an invalid media type
Date Wed, 18 May 2011 01:13:47 GMT
CXF doesn't always generate 415 when POSTing to a resource with an invalid media type
-------------------------------------------------------------------------------------

                 Key: CXF-3531
                 URL: https://issues.apache.org/jira/browse/CXF-3531
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.3.4, 2.4
         Environment: JDK 1.6
            Reporter: Ka-Lok Fung
            Priority: Minor
             Fix For: 2.4.1, 2.3.5


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.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message