{"record":{"id":"37d7149a0495a6b7","repo":"apache/hadoop","slug":"access-denied-path","errorCode":null,"errorMessage":"Access Denied : {path}","messagePattern":"Access Denied : (.+?)","errorType":"exception","errorClass":"AccessControlException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java","lineNumber":829,"sourceCode":"  }\n\n  /**\n   * Checks if the user can access a path.  The mode specifies which access\n   * checks to perform.  If the requested permissions are granted, then the\n   * method returns normally.  If access is denied, then the method throws an\n   * {@link AccessControlException}.\n   *\n   * @param path Path to check\n   * @param mode type of access to check\n   * @throws AccessControlException        if access is denied\n   * @throws java.io.FileNotFoundException if the path does not exist\n   * @throws IOException                   see specific implementation\n   */\n  @Override\n  public void access(final Path path, FsAction mode) throws IOException {\n    statistics.incrementReadOps(1);\n    if (!adlClient.checkAccess(toRelativeFilePath(path), mode.SYMBOL)) {\n      throw new AccessControlException(\"Access Denied : \" + path.toString());\n    }\n  }\n\n  /**\n   * Return the {@link ContentSummary} of a given {@link Path}.\n   *\n   * @param f path to use\n   */\n  @Override\n  public ContentSummary getContentSummary(Path f) throws IOException {\n    statistics.incrementReadOps(1);\n    com.microsoft.azure.datalake.store.ContentSummary msSummary = adlClient\n        .getContentSummary(toRelativeFilePath(f));\n    return new Builder().length(msSummary.length)\n        .directoryCount(msSummary.directoryCount).fileCount(msSummary.fileCount)\n        .spaceConsumed(msSummary.spaceConsumed).build();\n  }\n","sourceCodeStart":811,"sourceCodeEnd":847,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java#L811-L847","documentation":"Error \"Access Denied : {path}\" thrown in apache/hadoop.","triggerScenarios":"The ADL service denies access to the path for the authenticated identity.","commonSituations":"See trigger scenarios.","solutions":["Grant the caller the required permission on the ADL path.","Verify the OAuth credentials and the path's ACLs."],"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"}