hadoop-common-issues mailing list archives

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

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

Steve Loughran commented on HADOOP-12088:
-----------------------------------------

yes to starts with, but the case conversion may also want to go {{toLower(EN_US)}} (oh, and
handle a null content-type), which the first check does

> 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
>
> {{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