{"record":{"id":"b5a668aaf46d6f21","repo":"phacility/phabricator","slug":"package-name-s-is-not-valid-package-names-are","errorCode":null,"errorMessage":"Package name \"%s\" is not valid: package names are required.","messagePattern":"Package name \"(.+?)\" is not valid: package names are required\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/packages/storage/PhabricatorPackagesPackage.php","lineNumber":84,"sourceCode":"    $publisher = $this->getPublisher();\n    $publisher_key = $publisher->getPublisherKey();\n    $package_key = $this->getPackageKey();\n    return \"{$publisher_key}/{$package_key}\";\n  }\n\n  public function attachPublisher(PhabricatorPackagesPublisher $publisher) {\n    $this->publisher = $publisher;\n    return $this;\n  }\n\n  public function getPublisher() {\n    return $this->assertAttached($this->publisher);\n  }\n\n  public static function assertValidPackageName($value) {\n    $length = phutil_utf8_strlen($value);\n    if (!$length) {\n      throw new Exception(\n        pht(\n          'Package name \"%s\" is not valid: package names are required.',\n          $value));\n    }\n\n    $max_length = 64;\n    if ($length > $max_length) {\n      throw new Exception(\n        pht(\n          'Package name \"%s\" is not valid: package names must not be '.\n          'more than %s characters long.',\n          $value,\n          new PhutilNumber($max_length)));\n    }\n  }\n\n  public static function assertValidPackageKey($value) {\n    $length = phutil_utf8_strlen($value);","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/packages/storage/PhabricatorPackagesPackage.php#L66-L102","documentation":"Error \"Package name \"%s\" is not valid: package names are required.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/packages/storage/PhabricatorPackagesPackage.php:84 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"}