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 ki...@apache.org on 2016/10/27 19:08:25 UTC

hadoop git commit: Revert "HDFS-10455. Logging the username when deny the setOwner operation. Contributed by Tianyin Xiu"

Repository: hadoop
Updated Branches:
  refs/heads/trunk 79aeddc88 -> db4196599


Revert "HDFS-10455. Logging the username when deny the setOwner operation. Contributed by Tianyin Xiu"

This reverts commit ac35ee9393e0afce9fede1d2052e7bf4032312fd.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/db419659
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/db419659
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/db419659

Branch: refs/heads/trunk
Commit: db41965996630c8f8c48618c5a0bc24321320c52
Parents: 79aeddc
Author: Kihwal Lee <ki...@apache.org>
Authored: Thu Oct 27 14:07:28 2016 -0500
Committer: Kihwal Lee <ki...@apache.org>
Committed: Thu Oct 27 14:07:28 2016 -0500

----------------------------------------------------------------------
 .../org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java    | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/db419659/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java
index 488c600..417ce01 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java
@@ -84,12 +84,10 @@ public class FSDirAttrOp {
       fsd.checkOwner(pc, iip);
       if (!pc.isSuperUser()) {
         if (username != null && !pc.getUser().equals(username)) {
-          throw new AccessControlException("User " + pc.getUser()
-              + " is not a super user (non-super user cannot change owner).");
+          throw new AccessControlException("Non-super user cannot change owner");
         }
         if (group != null && !pc.isMemberOfGroup(group)) {
-          throw new AccessControlException(
-              "User " + pc.getUser() + " does not belong to " + group);
+          throw new AccessControlException("User does not belong to " + group);
         }
       }
       unprotectedSetOwner(fsd, iip, username, group);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org