{"record":{"id":"544d434a50ab9a1e","repo":"phacility/phabricator","slug":"publisher-name-s-is-not-valid-publisher-names","errorCode":null,"errorMessage":"Publisher name \"%s\" is not valid: publisher names are required.","messagePattern":"Publisher name \"(.+?)\" is not valid: publisher names are required\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/packages/storage/PhabricatorPackagesPublisher.php","lineNumber":60,"sourceCode":"        ),\n      ),\n    ) + parent::getConfiguration();\n  }\n\n  public function generatePHID() {\n    return PhabricatorPHID::generateNewPHID(\n      PhabricatorPackagesPublisherPHIDType::TYPECONST);\n  }\n\n  public function getURI() {\n    $publisher_key = $this->getPublisherKey();\n    return \"/package/{$publisher_key}/\";\n  }\n\n  public static function assertValidPublisherName($value) {\n    $length = phutil_utf8_strlen($value);\n    if (!$length) {\n      throw new Exception(\n        pht(\n          'Publisher name \"%s\" is not valid: publisher names are required.',\n          $value));\n    }\n\n    $max_length = 64;\n    if ($length > $max_length) {\n      throw new Exception(\n        pht(\n          'Publisher name \"%s\" is not valid: publisher names must not be '.\n          'more than %s characters long.',\n          $value,\n          new PhutilNumber($max_length)));\n    }\n  }\n\n  public static function assertValidPublisherKey($value) {\n    $length = phutil_utf8_strlen($value);","sourceCodeStart":42,"sourceCodeEnd":78,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/packages/storage/PhabricatorPackagesPublisher.php#L42-L78","documentation":"Error \"Publisher name \"%s\" is not valid: publisher names are required.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/packages/storage/PhabricatorPackagesPublisher.php:60 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}