{"record":{"id":"de24499857dee880","repo":"apache/hadoop","slug":"e-getmessage-path-src","errorCode":null,"errorMessage":"e.getMessage() + \" Path: \" + src","messagePattern":"e\\.getMessage\\(\\) \\+ \" Path: \" \\+ src","errorType":"exception","errorClass":"AclException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAclOp.java","lineNumber":55,"sourceCode":"      FSDirectory fsd, FSPermissionChecker pc, final String srcArg,\n      List<AclEntry> aclSpec) throws IOException {\n    String src = srcArg;\n    checkAclsConfigFlag(fsd);\n    INodesInPath iip;\n    fsd.writeLock();\n    try {\n      iip = fsd.resolvePath(pc, src, DirOp.WRITE);\n      src = iip.getPath();\n      fsd.checkOwner(pc, iip);\n      INode inode = FSDirectory.resolveLastINode(iip);\n      int snapshotId = iip.getLatestSnapshotId();\n      List<AclEntry> existingAcl = AclStorage.readINodeLogicalAcl(inode);\n      List<AclEntry> newAcl = AclTransformation.mergeAclEntries(\n          existingAcl, aclSpec);\n      AclStorage.updateINodeAcl(inode, newAcl, snapshotId);\n      fsd.getEditLog().logSetAcl(src, newAcl);\n    } catch (AclException e){\n      throw new AclException(e.getMessage() + \" Path: \" + src, e);\n    } finally {\n      fsd.writeUnlock();\n    }\n    return fsd.getAuditFileInfo(iip);\n  }\n\n  static FileStatus removeAclEntries(\n      FSDirectory fsd, FSPermissionChecker pc, final String srcArg,\n      List<AclEntry> aclSpec) throws IOException {\n    String src = srcArg;\n    checkAclsConfigFlag(fsd);\n    INodesInPath iip;\n    fsd.writeLock();\n    try {\n      iip = fsd.resolvePath(pc, src, DirOp.WRITE);\n      src = iip.getPath();\n      fsd.checkOwner(pc, iip);\n      INode inode = FSDirectory.resolveLastINode(iip);","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAclOp.java#L37-L73","documentation":"Error \"e.getMessage() + \" Path: \" + src\" thrown in apache/hadoop.","triggerScenarios":"An ACL modification (setAcl, modifyAclEntries, removeAclEntries, removeDefaultAcl, removeAcl) fails on a path; the original exception message is re-thrown with the failing path appended.","commonSituations":"See trigger scenarios.","solutions":["Read the underlying ACL error message and path to identify the failing operation (e.g. missing path, permission denied).","Verify the path exists and the caller has ACL-modify privileges on it."],"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"}