HADOOP-8917. Merge 1450571 from trunk.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1450572 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6485664b15
commit
d0e1c8656e
|
@ -55,6 +55,9 @@ Release 2.0.4-beta - UNRELEASED
|
||||||
HADOOP-7487. DF should throw a more reasonable exception when mount cannot
|
HADOOP-7487. DF should throw a more reasonable exception when mount cannot
|
||||||
be determined. (Andrew Wang via atm)
|
be determined. (Andrew Wang via atm)
|
||||||
|
|
||||||
|
HADOOP-8917. add LOCALE.US to toLowerCase in SecurityUtil.replacePattern.
|
||||||
|
(Arpit Agarwal via suresh)
|
||||||
|
|
||||||
Release 2.0.3-alpha - 2013-02-06
|
Release 2.0.3-alpha - 2013-02-06
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -30,6 +30,7 @@ import java.security.PrivilegedAction;
|
||||||
import java.security.PrivilegedExceptionAction;
|
import java.security.PrivilegedExceptionAction;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.ServiceLoader;
|
import java.util.ServiceLoader;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
@ -219,7 +220,7 @@ public class SecurityUtil {
|
||||||
if (fqdn == null || fqdn.equals("") || fqdn.equals("0.0.0.0")) {
|
if (fqdn == null || fqdn.equals("") || fqdn.equals("0.0.0.0")) {
|
||||||
fqdn = getLocalHostName();
|
fqdn = getLocalHostName();
|
||||||
}
|
}
|
||||||
return components[0] + "/" + fqdn.toLowerCase() + "@" + components[2];
|
return components[0] + "/" + fqdn.toLowerCase(Locale.US) + "@" + components[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
static String getLocalHostName() throws UnknownHostException {
|
static String getLocalHostName() throws UnknownHostException {
|
||||||
|
|
Loading…
Reference in New Issue