phacility/phabricator · error · Exception

You can not request review of this revision because it has…

Error message

You can not request review of this revision because it has already been closed. You can only request review of open revisions.

What it means

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.

Solutions

  1. Create a new revision for follow-up work instead of reopening a closed one
  2. If the revision is abandoned, the author can reclaim it back to review first
  3. Reload the revision page to confirm its current status before retrying the action
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/differential/xaction/DifferentialRevisionRequestReviewTransaction.php:110 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/f9a7efcf024f006e. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/differential/xaction/DifferentialRevisionRequestReviewTransaction.php:110

  public function applyInternalEffects($object, $value) {
    $status_review = DifferentialRevisionStatus::NEEDS_REVIEW;
    $object
      ->setModernRevisionStatus($status_review)
      ->setShouldBroadcast(true);
  }

  protected function validateAction($object, PhabricatorUser $viewer) {
    if ($object->isNeedsReview()) {
      throw new Exception(
        pht(
          'You can not request review of this revision because this '.
          'revision is already under review and the action would have '.
          'no effect.'));
    }

    if ($object->isClosed()) {
      throw new Exception(
        pht(
          'You can not request review of this revision because it has '.
          'already been closed. You can only request review of open '.
          'revisions.'));
    }

    $this->getActorSourceType($object, $viewer);
  }

  public function getTitle() {
    $source = $this->getDraftPromotionSource();

    switch ($source) {
      case self::SOURCE_HARBORMASTER:
      case self::SOURCE_VIEWER:
      case self::SOURCE_AUTHOR:
        return pht(
          '%s published this revision for review.',

View on GitHub (pinned to 5720a38cfe)