{"record":{"id":"f9a7efcf024f006e","repo":"phacility/phabricator","slug":"you-can-not-request-review-of-this-revision-becaus-f9a7ef","errorCode":null,"errorMessage":"You can not request review of this revision because it has already been closed. You can only request review of open revisions.","messagePattern":"You can not request review of this revision because it has already been closed\\. You can only request review of open revisions\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/xaction/DifferentialRevisionRequestReviewTransaction.php","lineNumber":110,"sourceCode":"\n  public function applyInternalEffects($object, $value) {\n    $status_review = DifferentialRevisionStatus::NEEDS_REVIEW;\n    $object\n      ->setModernRevisionStatus($status_review)\n      ->setShouldBroadcast(true);\n  }\n\n  protected function validateAction($object, PhabricatorUser $viewer) {\n    if ($object->isNeedsReview()) {\n      throw new Exception(\n        pht(\n          'You can not request review of this revision because this '.\n          'revision is already under review and the action would have '.\n          'no effect.'));\n    }\n\n    if ($object->isClosed()) {\n      throw new Exception(\n        pht(\n          'You can not request review of this revision because it has '.\n          'already been closed. You can only request review of open '.\n          'revisions.'));\n    }\n\n    $this->getActorSourceType($object, $viewer);\n  }\n\n  public function getTitle() {\n    $source = $this->getDraftPromotionSource();\n\n    switch ($source) {\n      case self::SOURCE_HARBORMASTER:\n      case self::SOURCE_VIEWER:\n      case self::SOURCE_AUTHOR:\n        return pht(\n          '%s published this revision for review.',","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/xaction/DifferentialRevisionRequestReviewTransaction.php#L92-L128","documentation":"State guard in DifferentialRevisionRequestReviewTransaction::validateAction: the revision is already closed (published/abandoned), so requesting review is refused. Re-entering review is only possible for open revisions; closed revisions are considered finished and the intended path is creating a new revision.","triggerScenarios":"Thrown at src/applications/differential/xaction/DifferentialRevisionRequestReviewTransaction.php:110 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create a new revision for follow-up work instead of reopening a closed one","If the revision is abandoned, the author can reclaim it back to review first","Reload the revision page to confirm its current status before retrying the action"],"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"}