{"record":{"id":"36fb888fd88cc637","repo":"apache/hadoop","slug":"invalid-acl-the-user-group-and-other-entries-are","errorCode":null,"errorMessage":"Invalid ACL: the user, group and other entries are required.","messagePattern":"Invalid ACL: the user, group and other entries are required\\.","errorType":"exception","errorClass":"AclException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclTransformation.java","lineNumber":301,"sourceCode":"      if (entry.getName() != null && (entry.getType() == MASK ||\n          entry.getType() == OTHER)) {\n        throw new AclException(\n          \"Invalid ACL: this entry type must not have a name: \" + entry + \".\");\n      }\n      prevEntry = entry;\n    }\n\n    ScopedAclEntries scopedEntries = new ScopedAclEntries(aclBuilder);\n    checkMaxEntries(scopedEntries);\n\n    // Search for the required base access entries.  If there is a default ACL,\n    // then do the same check on the default entries.\n    for (AclEntryType type: EnumSet.of(USER, GROUP, OTHER)) {\n      AclEntry accessEntryKey = new AclEntry.Builder().setScope(ACCESS)\n        .setType(type).build();\n      if (Collections.binarySearch(scopedEntries.getAccessEntries(),\n          accessEntryKey, ACL_ENTRY_COMPARATOR) < 0) {\n        throw new AclException(\n          \"Invalid ACL: the user, group and other entries are required.\");\n      }\n      if (!scopedEntries.getDefaultEntries().isEmpty()) {\n        AclEntry defaultEntryKey = new AclEntry.Builder().setScope(DEFAULT)\n          .setType(type).build();\n        if (Collections.binarySearch(scopedEntries.getDefaultEntries(),\n            defaultEntryKey, ACL_ENTRY_COMPARATOR) < 0) {\n          throw new AclException(\n            \"Invalid default ACL: the user, group and other entries are required.\");\n        }\n      }\n    }\n    return Collections.unmodifiableList(aclBuilder);\n  }\n\n  // Check the max entries separately on access and default entries\n  // HDFS-7582\n  private static void checkMaxEntries(ScopedAclEntries scopedEntries)","sourceCodeStart":283,"sourceCodeEnd":319,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclTransformation.java#L283-L319","documentation":"Error \"Invalid ACL: the user, group and other entries are required.\" thrown in apache/hadoop.","triggerScenarios":"setAcl producing an access ACL missing the required user, group or other base entries.","commonSituations":"See trigger scenarios.","solutions":["Include the required user::, group:: and other:: entries in the ACL specification."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}