{"record":{"id":"9c9ba3e6b8e76f61","repo":"openai/codex","slug":"path-path-is-not-absolute-convention","errorCode":null,"errorMessage":"path `{path}` is not absolute{convention}","messagePattern":"path `(.+?)` is not absolute(.+?)","errorType":"exception","errorClass":"LegacyAppPathStringError","httpStatus":null,"severity":"error","filePath":"codex-rs/utils/path-uri/src/api_path_string.rs","lineNumber":359,"sourceCode":"}\n\nfn incompatible_convention(path: &PathUri, convention: PathConvention) -> LegacyAppPathStringError {\n    LegacyAppPathStringError::IncompatibleConvention {\n        path: path.to_string(),\n        convention,\n    }\n}\n\n#[derive(Debug, Error, PartialEq, Eq)]\npub enum LegacyAppPathStringError {\n    #[error(\"opaque fallback path URI `{path}` cannot be recovered as a native path\")]\n    OpaqueFallback { path: String },\n    #[error(\"path URI `{path}` cannot be rendered using {convention} path syntax\")]\n    IncompatibleConvention {\n        path: String,\n        convention: PathConvention,\n    },\n    #[error(\n        \"path `{path}` is not absolute{convention}\",\n        convention = .convention.map(|convention| format!(\" using {convention} path syntax\")).unwrap_or_default()\n    )]\n    InvalidNativePath {\n        path: String,\n        convention: Option<PathConvention>,\n    },\n}\n\n#[cfg(test)]\n#[path = \"api_path_string_tests.rs\"]\nmod tests;\n","sourceCodeStart":341,"sourceCodeEnd":372,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/utils/path-uri/src/api_path_string.rs#L341-L372","documentation":"The NotAbsolute variant of LegacyAppPathStringError: render_windows_path received a path that is not absolute; the optional convention suffix in the message names the expected syntax. Legacy app path strings must start from a root, so relative input is rejected.","triggerScenarios":"Thrown at codex-rs/utils/path-uri/src/api_path_string.rs:359 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Canonicalize the path to an absolute form before rendering","Prepend the intended root (drive or UNC prefix) to the relative path","Validate for absoluteness earlier in the pipeline and reject there"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}