{"record":{"id":"496a5222d767ce51","repo":"openai/codex","slug":"filesystem-path-is-too-long","errorCode":null,"errorMessage":"filesystem path is too long","messagePattern":"filesystem path is too long","errorType":"validation","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/exec-server/src/no_follow/windows.rs","lineNumber":132,"sourceCode":"                    b'\\\\' as u16\n                } else {\n                    unit\n                }\n            }),\n    );\n    result.push(0);\n    Ok(result)\n}\n\nfn open_handle(\n    path: &Path,\n    desired_access: u32,\n    create_disposition: u32,\n    create_options: u32,\n) -> io::Result<OwnedHandle> {\n    let mut path = nt_path(path)?;\n    let name_length = u16::try_from((path.len() - 1) * size_of::<u16>())\n        .map_err(|_| io::Error::new(io::ErrorKind::InvalidInput, \"filesystem path is too long\"))?;\n    let maximum_length = u16::try_from(path.len() * size_of::<u16>())\n        .map_err(|_| io::Error::new(io::ErrorKind::InvalidInput, \"filesystem path is too long\"))?;\n    let object_name = UNICODE_STRING {\n        Length: name_length,\n        MaximumLength: maximum_length,\n        Buffer: path.as_mut_ptr(),\n    };\n    let security_quality_of_service = SECURITY_QUALITY_OF_SERVICE {\n        Length: size_of::<SECURITY_QUALITY_OF_SERVICE>() as u32,\n        ImpersonationLevel: SecurityIdentification,\n        ContextTrackingMode: SECURITY_STATIC_TRACKING,\n        EffectiveOnly: BOOLEAN_TRUE,\n    };\n    let object_attributes = ObjectAttributes {\n        length: size_of::<ObjectAttributes>() as u32,\n        root_directory: 0,\n        object_name: &object_name,\n        attributes: OBJ_CASE_INSENSITIVE as u32 | OBJ_DONT_REPARSE as u32,","sourceCodeStart":114,"sourceCodeEnd":150,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec-server/src/no_follow/windows.rs#L114-L150","documentation":"Error \"filesystem path is too long\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/exec-server/src/no_follow/windows.rs:132 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":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}