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 25f2cf8a4e
commit 28d165d9a5
2 changed files with 5 additions and 1 deletions

View File

@ -394,6 +394,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 class SaslPropertiesResolver implements Configurable{
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");