{"record":{"id":"dea951198eadad1e","repo":"phacility/phabricator","slug":"config-option-s-is-invalid-the-uri-must-start-dea951","errorCode":null,"errorMessage":"Config option '%s' is invalid. The URI must start with '%s' or '%s'.","messagePattern":"Config option '(.+?)' is invalid\\. The URI must start with '(.+?)' or '(.+?)'\\.","errorType":"validation","errorClass":"PhabricatorConfigValidationException","httpStatus":null,"severity":"error","filePath":"src/applications/config/option/PhabricatorSecurityConfigOptions.php","lineNumber":301,"sourceCode":"              'setting.')),\n        $this->newOption('keyring', $keyring_type, array())\n          ->setHidden(true)\n          ->setSummary(pht('Configure master encryption keys.'))\n          ->setDescription($keyring_description),\n    );\n  }\n\n  protected function didValidateOption(\n    PhabricatorConfigOption $option,\n    $value) {\n\n    $key = $option->getKey();\n    if ($key == 'security.alternate-file-domain') {\n\n      $uri = new PhutilURI($value);\n      $protocol = $uri->getProtocol();\n      if ($protocol !== 'http' && $protocol !== 'https') {\n        throw new PhabricatorConfigValidationException(\n          pht(\n            \"Config option '%s' is invalid. The URI must start with \".\n            \"'%s' or '%s'.\",\n            $key,\n            'http://',\n            'https://'));\n      }\n\n      $domain = $uri->getDomain();\n      if (strpos($domain, '.') === false) {\n        throw new PhabricatorConfigValidationException(\n          pht(\n            \"Config option '%s' is invalid. The URI must contain a dot ('.'), \".\n            \"like '%s', not just a bare name like '%s'. \".\n            \"Some web browsers will not set cookies on domains with no TLD.\",\n            $key,\n            'http://example.com/',\n            'http://example/'));","sourceCodeStart":283,"sourceCodeEnd":319,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/config/option/PhabricatorSecurityConfigOptions.php#L283-L319","documentation":"Error \"Config option '%s' is invalid. The URI must start with '%s' or '%s'.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/config/option/PhabricatorSecurityConfigOptions.php:301 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"}