hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1655434 - /hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
Date Wed, 28 Jan 2015 19:12:16 GMT
Author: brock
Date: Wed Jan 28 19:12:15 2015
New Revision: 1655434

URL: http://svn.apache.org/r1655434
Log:
HIVE-9484 - ThriftCLIService#getDelegationToken does case sensitive comparison (Jimmy Xiang
via Brock)

Modified:
    hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java

Modified: hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java?rev=1655434&r1=1655433&r2=1655434&view=diff
==============================================================================
--- hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java (original)
+++ hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java Wed
Jan 28 19:12:15 2015
@@ -347,7 +347,7 @@ public abstract class ThriftCLIService e
   private String getDelegationToken(String userName)
       throws HiveSQLException, LoginException, IOException {
     if (userName == null || !cliService.getHiveConf().getVar(ConfVars.HIVE_SERVER2_AUTHENTICATION)
-        .equals(HiveAuthFactory.AuthTypes.KERBEROS.toString())) {
+        .equalsIgnoreCase(HiveAuthFactory.AuthTypes.KERBEROS.toString())) {
       return null;
     }
     try {



Mime
View raw message