{"record":{"id":"dbed15dc5d75081f","repo":"apache/hadoop","slug":"invalid-permission-in-aclspec","errorCode":null,"errorMessage":"Invalid permission in <aclSpec> : ","messagePattern":"Invalid permission in <aclSpec> : ","errorType":"validation","errorClass":"HadoopIllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/AclEntry.java","lineNumber":311,"sourceCode":"    }\n\n    if (split.length > index) {\n      String name = split[index];\n      if (!name.isEmpty()) {\n        builder.setName(name);\n      }\n      index++;\n    }\n\n    if (includePermission) {\n      if (split.length <= index) {\n        throw new HadoopIllegalArgumentException(\"Invalid <aclSpec> : \"\n            + aclStr);\n      }\n      String permission = split[index];\n      FsAction fsAction = FsAction.getFsAction(permission);\n      if (null == fsAction) {\n        throw new HadoopIllegalArgumentException(\n            \"Invalid permission in <aclSpec> : \" + aclStr);\n      }\n      builder.setPermission(fsAction);\n      index++;\n    }\n\n    if (split.length > index) {\n      throw new HadoopIllegalArgumentException(\"Invalid <aclSpec> : \" + aclStr);\n    }\n    AclEntry aclEntry = builder.build();\n    return aclEntry;\n  }\n\n  /**\n   * Convert a List of AclEntries into a string - the reverse of parseAclSpec.\n   * @param aclSpec List of AclEntries to convert\n   * @return String representation of aclSpec\n   */","sourceCodeStart":293,"sourceCodeEnd":329,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/AclEntry.java#L293-L329","documentation":"Error \"Invalid permission in <aclSpec> : \" thrown in apache/hadoop.","triggerScenarios":"Thrown when AclEntry.parseAclEntry encounters an ACL spec entry whose permission field is not a valid combination of r, w, x (e.g. 'user:foo:q' or a permission string with invalid characters).","commonSituations":"See trigger scenarios.","solutions":["Use a valid ACL permission in the <aclSpec>: some combination of r, w, x (e.g. 'rwx', 'r--').","Check the ACL spec format: [default:]type:name:permissions, and fix the permission field."],"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"}