phacility/phabricator · error · PhabricatorApplicationTransactionValidationException
The publisher key " " is already in use by another…
Error message
The publisher key "%s" is already in use by another publisher.
What it means
Uniqueness validation in the Packages publisher editor: a duplicate-key violation on the publisher key unique index was caught and re-raised as a form validation error — the publisher key is already taken.
Solutions
- Pick a different publisher key
- Rename or remove the existing publisher that holds the key
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/packages/editor/PhabricatorPackagesPublisherEditor.php:42 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/cad9b5ccc34c7087.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/packages/editor/PhabricatorPackagesPublisherEditor.php:42
protected function getMailTo(PhabricatorLiskDAO $object) {
return array();
}
protected function didCatchDuplicateKeyException(
PhabricatorLiskDAO $object,
array $xactions,
Exception $ex) {
$errors = array();
$errors[] = new PhabricatorApplicationTransactionValidationError(
PhabricatorPackagesPublisherKeyTransaction::TRANSACTIONTYPE,
pht('Duplicate'),
pht(
'The publisher key "%s" is already in use by another publisher.',
$object->getPublisherKey()),
null);
throw new PhabricatorApplicationTransactionValidationException($errors);
}
}
View on GitHub (pinned to 5720a38cfe)