You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ji...@apache.org on 2011/03/08 02:19:10 UTC
svn commit: r1079068 - in /hadoop/common/trunk: CHANGES.txt
src/java/org/apache/hadoop/security/UserGroupInformation.java
Author: jitendra
Date: Tue Mar 8 01:19:09 2011
New Revision: 1079068
URL: http://svn.apache.org/viewvc?rev=1079068&view=rev
Log:
HADOOP-6912. Guard against NPE when calling UGI.isLoginKeytabBased(). Contributed by Kan Zhang.
Modified:
hadoop/common/trunk/CHANGES.txt
hadoop/common/trunk/src/java/org/apache/hadoop/security/UserGroupInformation.java
Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1079068&r1=1079067&r2=1079068&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Tue Mar 8 01:19:09 2011
@@ -100,6 +100,9 @@ Trunk (unreleased changes)
HADOOP-7131. Exceptions thrown by Text methods should include the causing
exception. (Uma Maheswara Rao G via todd)
+ HADOOP-6912. Guard against NPE when calling UGI.isLoginKeytabBased().
+ (Kan Zhang via jitendra)
+
Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES
Modified: hadoop/common/trunk/src/java/org/apache/hadoop/security/UserGroupInformation.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/security/UserGroupInformation.java?rev=1079068&r1=1079067&r2=1079068&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/security/UserGroupInformation.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/security/UserGroupInformation.java Tue Mar 8 01:19:09 2011
@@ -811,8 +811,8 @@ public class UserGroupInformation {
* Did the login happen via keytab
* @return true or false
*/
- public synchronized static boolean isLoginKeytabBased() {
- return loginUser.isKeytab;
+ public synchronized static boolean isLoginKeytabBased() throws IOException {
+ return getLoginUser().isKeytab;
}
/**