hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077259 - /hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/security/authorize/ServiceAuthorizationManager.java
Date Fri, 04 Mar 2011 03:57:14 GMT
Author: omalley
Date: Fri Mar  4 03:57:13 2011
New Revision: 1077259

URL: http://svn.apache.org/viewvc?rev=1077259&view=rev
Log:
commit d8f3016eb6c145c8e5c7623b280df8be4e9f6afe
Author: Boris Shkolnik <borya@yahoo-inc.com>
Date:   Mon Mar 1 15:18:55 2010 -0800

    HADOOP:6600 from https://issues.apache.org/jira/secure/attachment/12437534/HADOOP-6600-BP20-fix.patch
    
    +++ b/YAHOO-CHANGES.txt
    +
    +    HADOOP-6600. Fix for branch backport only. Comparing of user should use
    +    equals. (boryas).
    +

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/security/authorize/ServiceAuthorizationManager.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/security/authorize/ServiceAuthorizationManager.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/security/authorize/ServiceAuthorizationManager.java?rev=1077259&r1=1077258&r2=1077259&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/security/authorize/ServiceAuthorizationManager.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/security/authorize/ServiceAuthorizationManager.java
Fri Mar  4 03:57:13 2011
@@ -80,7 +80,7 @@ public class ServiceAuthorizationManager
         clientPrincipal = conf.get(clientKey);
       }
     }
-    if((clientPrincipal != null && clientPrincipal != user.getUserName()) || 
+    if((clientPrincipal != null && !clientPrincipal.equals(user.getUserName())) ||

         !acl.isUserAllowed(user)) {
       auditLOG.warn(AUTHZ_FAILED_FOR + user + " for protocol="+protocol);
       throw new AuthorizationException("User " + user + 



Mime
View raw message