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 na...@apache.org on 2018/04/02 07:18:42 UTC
[26/50] [abbrv] hadoop git commit: HDFS-13357. Improve AclException
message "Invalid ACL: only directories may have a default ACL.". Contributed
by Gabor Bota.
HDFS-13357. Improve AclException message "Invalid ACL: only directories may have a default ACL.". Contributed by Gabor Bota.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/ad10cbd9
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/ad10cbd9
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/ad10cbd9
Branch: refs/heads/YARN-3409
Commit: ad10cbd91bcf80e63d5f98868f9258c0119db2a9
Parents: 431076f
Author: Wei-Chiu Chuang <we...@apache.org>
Authored: Thu Mar 29 07:08:22 2018 -0700
Committer: Wei-Chiu Chuang <we...@apache.org>
Committed: Thu Mar 29 07:08:22 2018 -0700
----------------------------------------------------------------------
.../java/org/apache/hadoop/hdfs/server/namenode/AclStorage.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/ad10cbd9/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclStorage.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclStorage.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclStorage.java
index 58dfe12..10ecc23 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclStorage.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclStorage.java
@@ -281,7 +281,8 @@ public final class AclStorage {
// Only directories may have a default ACL.
if (!defaultEntries.isEmpty() && !inode.isDirectory()) {
throw new AclException(
- "Invalid ACL: only directories may have a default ACL.");
+ "Invalid ACL: only directories may have a default ACL. "
+ + "Path: " + inode.getFullPathName());
}
// Attach entries to the feature.
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org