{"record":{"id":"1fdb687dd72a1062","repo":"phacility/phabricator","slug":"invalid-path-id","errorCode":null,"errorMessage":"Invalid path ID!","messagePattern":"Invalid path ID!","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/controller/DiffusionInlineCommentController.php","lineNumber":44,"sourceCode":"    if (!$commit) {\n      throw new Exception(pht('Invalid commit PHID \"%s\"!', $commit_phid));\n    }\n\n    return $commit;\n  }\n\n  protected function createComment() {\n    $commit = $this->loadCommit();\n\n    // TODO: Write a real PathQuery object?\n    $path_id = $this->getChangesetID();\n    $path = queryfx_one(\n      id(new PhabricatorRepository())->establishConnection('r'),\n      'SELECT path FROM %T WHERE id = %d',\n      PhabricatorRepository::TABLE_PATH,\n      $path_id);\n    if (!$path) {\n      throw new Exception(pht('Invalid path ID!'));\n    }\n\n    return id(new PhabricatorAuditInlineComment())\n      ->setCommitPHID($commit->getPHID())\n      ->setPathID($path_id);\n  }\n\n  protected function loadCommentForDone($id) {\n    $viewer = $this->getViewer();\n\n    $inline = $this->loadCommentByID($id);\n    if (!$inline) {\n      throw new Exception(pht('Failed to load comment \"%d\".', $id));\n    }\n\n    $commit = id(new DiffusionCommitQuery())\n      ->setViewer($viewer)\n      ->withPHIDs(array($inline->getCommitPHID()))","sourceCodeStart":26,"sourceCodeEnd":62,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/controller/DiffusionInlineCommentController.php#L26-L62","documentation":"Error \"Invalid path ID!\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/controller/DiffusionInlineCommentController.php:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}