cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Moroski (JIRA)" <>
Subject [jira] [Created] (CXF-6997) Accept header doesn't correctly support multiple media ranges
Date Fri, 05 Aug 2016 20:53:20 GMT
Jeff Moroski created CXF-6997:

             Summary: Accept header doesn't correctly support multiple media ranges
                 Key: CXF-6997
             Project: CXF
          Issue Type: Bug
            Reporter: Jeff Moroski

An Accept value of {{application/*+xml,application/*+xml;version=25.0,application/*+xml;version=1.5}}
is valid according to [Section 5.3.2 of RFC 7231|],
but when a media range and no corresponding accept params exists anywhere but the end of the
value, the MediaTypeHeaderProvider fails to process the value correctly:

Server stack trace: java.lang.IllegalArgumentException: Invalid media type string: application/*+xml,application/*+xml;version=25.0,application/*+xml;version=1.5
at org.apache.cxf.jaxrs.impl.MediaTypeHeaderProvider.internalValueOf(
at org.apache.cxf.jaxrs.impl.MediaTypeHeaderProvider.valueOf(
at org.apache.cxf.jaxrs.impl.MediaTypeHeaderProvider.fromString(
at org.apache.cxf.jaxrs.impl.MediaTypeHeaderProvider.fromString(

This message was sent by Atlassian JIRA

View raw message