hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12088) KMSClientProvider uses equalsIgnoreCase("application/json")
Date Sat, 13 Jun 2015 09:24:00 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-12088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14584523#comment-14584523
] 

Brahma Reddy Battula commented on HADOOP-12088:
-----------------------------------------------

As per [RFC|http://www.ietf.org/rfc/rfc4627.txt] specification type and sub type can be followed
by parameters separated by ";"

So, I think its sufficient to check as {{conn.getContentType().startsWIth("application/json")}}

[~stevel@apache.org] please let me know your opinion.

> KMSClientProvider uses equalsIgnoreCase("application/json")
> -----------------------------------------------------------
>
>                 Key: HADOOP-12088
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12088
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: kms
>    Affects Versions: 2.7.1
>            Reporter: Steve Loughran
>            Assignee: Brahma Reddy Battula
>            Priority: Minor
>
> {{KMSClientProvider.call()}} validates the content type returned by going 
> {code}
> "application/json".equalsIgnoreCase(conn.getContentType())
> {code}
> that's not going to work in all locales, not if upper case is being returned. 



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

Mime
View raw message