phacility/phabricator · error · Exception
You can not resign from this revision because it has…
Error message
You can not resign from this revision because it has already been closed. You can only resign from open revisions.
What it means
State guard in DifferentialRevisionResignTransaction::validateAction: resigning from a review is refused because the revision is already closed (published/abandoned). Resignation only matters for reviewers on an active review; once the revision is closed the review has concluded and reviewer resignations have no meaning, so the transition is blocked.
Solutions
- No action needed: the review is finished, so reviewer status no longer applies
- If you no longer want to be a reviewer on similar revisions, adjust package/project membership or Herald rules that assigned you
- Verify the revision status on the page if you expected it to still be open
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/differential/xaction/DifferentialRevisionResignTransaction.php:64 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/49f983abdc212237.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/differential/xaction/DifferentialRevisionResignTransaction.php:64
return pht('Resign from a revision.');
}
public function generateOldValue($object) {
$actor = $this->getActor();
$resigned = DifferentialReviewerStatus::STATUS_RESIGNED;
return ($this->getViewerReviewerStatus($object, $actor) == $resigned);
}
public function applyExternalEffects($object, $value) {
$status = DifferentialReviewerStatus::STATUS_RESIGNED;
$actor = $this->getActor();
$this->applyReviewerEffect($object, $actor, $value, $status);
}
protected function validateAction($object, PhabricatorUser $viewer) {
if ($object->isClosed()) {
throw new Exception(
pht(
'You can not resign from this revision because it has already '.
'been closed. You can only resign from open revisions.'));
}
$resigned = DifferentialReviewerStatus::STATUS_RESIGNED;
if ($this->getViewerReviewerStatus($object, $viewer) == $resigned) {
throw new Exception(
pht(
'You can not resign from this revision because you have already '.
'resigned.'));
}
if (!$this->isViewerAnyAuthority($object, $viewer)) {
throw new Exception(
pht(
'You can not resign from this revision because you are not a '.
'reviewer, and do not have authority over any reviewer.'));View on GitHub (pinned to 5720a38cfe)