Jelajahi Sumber

HADOOP-7509. Fix wrong variable name in exception message introduced in HADOOP-7509. Contributed by Ravi Prakash.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security@1183129 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 14 tahun lalu
induk
melakukan
5680409f63
2 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 3 0
      CHANGES.txt
  2. 2 2
      src/core/org/apache/hadoop/ipc/Server.java

+ 3 - 0
CHANGES.txt

@@ -38,6 +38,9 @@ Release 0.20.206.0 - unreleased
     HADOOP-7509. Improve exception message thrown when Authentication is 
     required. (Ravi Prakash via suresh)
 
+    HADOOP-7509. Fix wrong variable name in exception message introduced
+    in HADOOP-7509. (Ravi Prakash via suresh)
+
 Release 0.20.205.1 - unreleased
 
   BUG FIXES

+ 2 - 2
src/core/org/apache/hadoop/ipc/Server.java

@@ -1125,9 +1125,9 @@ public abstract class Server {
           }
           if (isSecurityEnabled && authMethod == AuthMethod.SIMPLE) {
             AccessControlException ae = new AccessControlException("Authorization ("
-              + CommonConfigurationKeys.HADOOP_SECURITY_AUTHENTICATION
-              + ") is enabled but authentication ("
               + CommonConfigurationKeys.HADOOP_SECURITY_AUTHORIZATION
+              + ") is enabled but authentication ("
+              + CommonConfigurationKeys.HADOOP_SECURITY_AUTHENTICATION
               + ") is configured as simple. Please configure another method "
               + "like kerberos or digest.");
             setupResponse(authFailedResponse, authFailedCall, Status.FATAL,