hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kih...@apache.org
Subject hadoop git commit: Revert "HDFS-10455. Logging the username when deny the setOwner operation. Contributed by Tianyin Xiu"
Date Thu, 27 Oct 2016 19:10:27 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 f4300ea12 -> 6c11a1191


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

This reverts commit f4300ea12af356c5d0fcc379b892ac918bafbc18.


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

Branch: refs/heads/branch-2
Commit: 6c11a119184b888c5b1a11e365bffc97b4598845
Parents: f4300ea
Author: Kihwal Lee <kihwal@apache.org>
Authored: Thu Oct 27 14:10:07 2016 -0500
Committer: Kihwal Lee <kihwal@apache.org>
Committed: Thu Oct 27 14:10:07 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/6c11a119/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 04bfbb7..6c3f6ab 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
@@ -83,12 +83,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


Mime
View raw message