{"record":{"id":"82bb916a4714add5","repo":"phacility/phabricator","slug":"you-can-not-request-changes-to-this-revision-becau","errorCode":null,"errorMessage":"You can not request changes to this revision because it has already been closed. You can only request changes to open revisions.","messagePattern":"You can not request changes to this revision because it has already been closed\\. You can only request changes to open revisions\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/xaction/DifferentialRevisionRejectTransaction.php","lineNumber":64,"sourceCode":"\n  public function getCommandSummary() {\n    return pht('Request changes to a revision.');\n  }\n\n  public function generateOldValue($object) {\n    $actor = $this->getActor();\n    return $this->isViewerFullyRejected($object, $actor);\n  }\n\n  public function applyExternalEffects($object, $value) {\n    $status = DifferentialReviewerStatus::STATUS_REJECTED;\n    $actor = $this->getActor();\n    $this->applyReviewerEffect($object, $actor, $value, $status);\n  }\n\n  protected function validateAction($object, PhabricatorUser $viewer) {\n    if ($object->isClosed()) {\n      throw new Exception(\n        pht(\n          'You can not request changes to this revision because it has '.\n          'already been closed. You can only request changes to open '.\n          'revisions.'));\n    }\n\n    if ($this->isViewerRevisionAuthor($object, $viewer)) {\n      throw new Exception(\n        pht(\n          'You can not request changes to this revision because you are the '.\n          'revision author. You can only request changes to revisions you do '.\n          'not own.'));\n    }\n\n    if ($object->isDraft() || !$object->getShouldBroadcast()) {\n      throw new Exception(\n        pht('You can not request changes to a draft revision.'));\n    }","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/xaction/DifferentialRevisionRejectTransaction.php#L46-L82","documentation":"State guard in DifferentialRevisionRejectTransaction::validateAction: 'Request Changes' is refused because the revision is already closed (published/abandoned). Reviewer verdicts only apply to open revisions; after closure the review is over and reject/accept transitions are permanently blocked.","triggerScenarios":"Thrown at src/applications/differential/xaction/DifferentialRevisionRejectTransaction.php:64 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the revision status; if it landed, follow up with comments on the commit or a new revision rather than requesting changes","If you expected the revision to still be open, reload the page — it may have been closed since you loaded it","Ensure you are acting on the intended revision (correct D-id)"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}