{"record":{"id":"e56a1c5b1a0e6f1a","repo":"apache/hadoop","slug":"invalid-default-acl-the-user-group-and-other-ent","errorCode":null,"errorMessage":"Invalid default ACL: the user, group and other entries are required.","messagePattern":"Invalid default 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":309,"sourceCode":"    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)\n      throws AclException {\n    List<AclEntry> accessEntries = scopedEntries.getAccessEntries();\n    List<AclEntry> defaultEntries = scopedEntries.getDefaultEntries();\n    if (accessEntries.size() > MAX_ENTRIES) {\n      throw new AclException(\"Invalid ACL: ACL has \" + accessEntries.size()\n          + \" access entries, which exceeds maximum of \" + MAX_ENTRIES + \".\");\n    }\n    if (defaultEntries.size() > MAX_ENTRIES) {","sourceCodeStart":291,"sourceCodeEnd":327,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclTransformation.java#L291-L327","documentation":"Error \"Invalid default ACL: the user, group and other entries are required.\" thrown in apache/hadoop.","triggerScenarios":"setAcl producing a default ACL missing the required user, group or other base entries.","commonSituations":"See trigger scenarios.","solutions":["Include default:user::, default:group:: and default:other:: entries in the default ACL."],"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-23T01:17:44.959Z"}