{"record":{"id":"2de1755d906193ed","repo":"phacility/phabricator","slug":"unable-to-find-s-in-s","errorCode":null,"errorMessage":"Unable to find `%s` in %s!","messagePattern":"Unable to find `(.+?)` in (.+?)!","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/controller/DiffusionServeController.php","lineNumber":577,"sourceCode":"    // issues where we might interpret inputs like \"service=read&service=write\"\n    // differently than the server does and pass it an unsafe command.\n\n    // NOTE: This does not use getPassthroughRequestParameters() because\n    // that code is HTTP-method agnostic and will encode POST data.\n\n    $query_data = $_GET;\n    foreach ($query_data as $key => $value) {\n      if (!strncmp($key, '__', 2)) {\n        unset($query_data[$key]);\n      }\n    }\n    $query_string = phutil_build_http_querystring($query_data);\n\n    // We're about to wipe out PATH with the rest of the environment, so\n    // resolve the binary first.\n    $bin = Filesystem::resolveBinary('git-http-backend');\n    if (!$bin) {\n      throw new Exception(\n        pht(\n          'Unable to find `%s` in %s!',\n          'git-http-backend',\n          '$PATH'));\n    }\n\n    // NOTE: We do not set HTTP_CONTENT_ENCODING here, because we already\n    // decompressed the request when we read the request body, so the body is\n    // just plain data with no encoding.\n\n    $env = array(\n      'REQUEST_METHOD' => $_SERVER['REQUEST_METHOD'],\n      'QUERY_STRING' => $query_string,\n      'CONTENT_TYPE' => $request->getHTTPHeader('Content-Type'),\n      'REMOTE_ADDR' => $_SERVER['REMOTE_ADDR'],\n      'GIT_PROJECT_ROOT' => $repository_root,\n      'GIT_HTTP_EXPORT_ALL' => '1',\n      'PATH_INFO' => $request_path,","sourceCodeStart":559,"sourceCodeEnd":595,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/controller/DiffusionServeController.php#L559-L595","documentation":"Error \"Unable to find `%s` in %s!\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/controller/DiffusionServeController.php:577 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"}