HADOOP-11507 Hadoop RPC Authentication problem with different user locale. (Talat UYARER via stevel)

This commit is contained in:
Steve Loughran 2015-01-23 19:36:37 +00:00
parent 24aa462673
commit 56df5f41eb
2 changed files with 5 additions and 1 deletions

View File

@ -753,6 +753,9 @@ Release 2.7.0 - UNRELEASED
HADOOP-11493. Fix some typos in kms-acls.xml description.
(Charles Lamb via aajisaka)
HADOOP-11507 Hadoop RPC Authentication problem with different user locale.
(Talat UYARER via stevel)
Release 2.6.0 - 2014-11-18
INCOMPATIBLE CHANGES

View File

@ -18,6 +18,7 @@
package org.apache.hadoop.security;
import java.net.InetAddress;
import java.util.Locale;
import java.util.Map;
import java.util.TreeMap;
@ -65,7 +66,7 @@ public void setConf(Configuration conf) {
CommonConfigurationKeysPublic.HADOOP_RPC_PROTECTION,
QualityOfProtection.AUTHENTICATION.toString());
for (int i=0; i < qop.length; i++) {
qop[i] = QualityOfProtection.valueOf(qop[i].toUpperCase()).getSaslQop();
qop[i] = QualityOfProtection.valueOf(qop[i].toUpperCase(Locale.ENGLISH)).getSaslQop();
}
properties.put(Sasl.QOP, StringUtils.join(",", qop));
properties.put(Sasl.SERVER_AUTH, "true");