{"record":{"id":"eb7298bab0e048df","repo":"phacility/phabricator","slug":"package-key-s-is-not-valid-package-keys-must-n","errorCode":null,"errorMessage":"Package key \"%s\" is not valid: package keys must not be more than %s characters long.","messagePattern":"Package key \"(.+?)\" is not valid: package keys must not be more than (.+?) characters long\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/packages/storage/PhabricatorPackagesPackage.php","lineNumber":112,"sourceCode":"          '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);\n    if (!$length) {\n      throw new Exception(\n        pht(\n          'Package key \"%s\" is not valid: package keys are required.',\n          $value));\n    }\n\n    $max_length = 64;\n    if ($length > $max_length) {\n      throw new Exception(\n        pht(\n          'Package key \"%s\" is not valid: package keys must not be '.\n          'more than %s characters long.',\n          $value,\n          new PhutilNumber($max_length)));\n    }\n\n    if (!preg_match('/^[a-z]+\\z/', $value)) {\n      throw new Exception(\n        pht(\n          'Package key \"%s\" is not valid: package keys may only contain '.\n          'lowercase latin letters.',\n          $value));\n    }\n  }\n\n\n/* -(  PhabricatorSubscribableInterface  )----------------------------------- */","sourceCodeStart":94,"sourceCodeEnd":130,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/packages/storage/PhabricatorPackagesPackage.php#L94-L130","documentation":"Error \"Package key \"%s\" is not valid: package keys must not be more than %s characters long.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/packages/storage/PhabricatorPackagesPackage.php:112 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"}