{"record":{"id":"7ac7afd7e29cd1da","repo":"octobercms/october","slug":"file-not-found-7ac7af","errorCode":null,"errorMessage":"File not found","messagePattern":"File not found","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/models/ExportModel.php","lineNumber":80,"sourceCode":"    /**\n     * exportDownload returns a download response\n     * @return \\Illuminate\\Http\\Response\n     */\n    public function exportDownload($outputName, $options = [])\n    {\n        $columns = $options['columns'] ?? [];\n\n        return $this->download($this->export($columns, $options), $outputName);\n    }\n\n    /**\n     * download a previously compiled export file.\n     * @return \\Illuminate\\Http\\Response\n     */\n    public function download($name, $outputName = null)\n    {\n        if (!preg_match('/^oc[0-9a-z]*$/i', $name)) {\n            throw new ApplicationException(__(\"File not found\"));\n        }\n\n        $csvPath = $this->getTemporaryExportPath($name);\n        if (!file_exists($csvPath)) {\n            throw new ApplicationException(__(\"File not found\"));\n        }\n\n        if (str_ends_with($name, 'xzip')) {\n            $contentType = 'application/zip';\n        }\n        elseif (str_ends_with($name, 'xjson')) {\n            $contentType = 'application/json';\n        }\n        else {\n            $contentType = 'text/csv';\n        }\n\n        return Response::download($csvPath, $outputName, [","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/models/ExportModel.php#L62-L98","documentation":"Error \"File not found\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/models/ExportModel.php:80 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":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}