You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2014/11/14 14:16:33 UTC

[jira] [Updated] (CXF-6104) Support case insensitive mime types

     [ https://issues.apache.org/jira/browse/CXF-6104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin updated CXF-6104:
----------------------------------
         Priority: Minor  (was: Major)
    Fix Version/s: 2.7.14
                   3.0.3
                   3.1.0
         Assignee: Sergey Beryozkin
       Issue Type: Bug  (was: New Feature)

> Support case insensitive mime types
> -----------------------------------
>
>                 Key: CXF-6104
>                 URL: https://issues.apache.org/jira/browse/CXF-6104
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.2
>            Reporter: Jostein Gogstad
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.1.0, 3.0.3, 2.7.14
>
>
> A request with header {code:none}Content-Type: application/json;charset=UTF-8{code} will not match a method annotated with {code:none}@Consumes("application/json; charset=utf-8"){code} This is unfortunate since the former casing of "UTF-8" is used by several front-end frameworks, for instance Google's [AngularJS (ngResource)|https://docs.angularjs.org/api/ngResource/service/$resource], and the latter casing is used several places by the Internet ([w3.org|http://www.w3.org/International/O-HTTP-charset.en.php] for example).
> The "bug" is located here:
> {code:java|title=org.apache.cxf.jaxrs.utils.JAXRSUtils#intersectMimeTypes(java.util.List<MediaType>, java.util.List<MediaType>, boolean, boolean)}
>                         if (value != null && !value.equals(entry.getValue())) {
> {code}
> should be
> {code:java}
>                         if (value != null && !value.equalsIgnoreCase(entry.getValue())) {
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)