{"record":{"id":"ef4b8237ff5ad373","repo":"openai/codex","slug":"ports-are-not-allowed-in-path-uris","errorCode":null,"errorMessage":"ports are not allowed in path URIs","messagePattern":"ports are not allowed in path URIs","errorType":"exception","errorClass":"PathUriParseError","httpStatus":null,"severity":"error","filePath":"codex-rs/utils/path-uri/src/lib.rs","lineNumber":890,"sourceCode":"    {\n        return Err(PathUriParseError::InvalidFileUriPath {\n            path: url.to_string(),\n        });\n    }\n    Ok(())\n}\n\n#[derive(Debug, Error, PartialEq, Eq)]\npub enum PathUriParseError {\n    #[error(\"invalid URI: {0}\")]\n    InvalidUri(#[from] url::ParseError),\n    #[error(\"unsupported path URI scheme `{0}`\")]\n    UnsupportedScheme(String),\n    #[error(\"'{path}' is invalid on '{os}'\", os = std::env::consts::OS)]\n    InvalidFileUriPath { path: String },\n    #[error(\"credentials are not allowed in path URIs\")]\n    CredentialsNotAllowed,\n    #[error(\"ports are not allowed in path URIs\")]\n    PortNotAllowed,\n    #[error(\"query parameters are not allowed in path URIs\")]\n    QueryNotAllowed,\n    #[error(\"fragments are not allowed in path URIs\")]\n    FragmentNotAllowed,\n    #[error(\"path `{0}` must be relative when joining a path URI\")]\n    JoinPathMustBeRelative(String),\n}\n\n/// Path syntax used to render a [`PathUri`] as an operating-system path.\n///\n/// This describes path grammar rather than a specific operating system because\n/// Linux and macOS share the POSIX representation relevant here.\n#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize, JsonSchema, TS)]\n#[serde(rename_all = \"snake_case\")]\n#[ts(rename_all = \"snake_case\")]\npub enum PathConvention {\n    Posix,","sourceCodeStart":872,"sourceCodeEnd":908,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/utils/path-uri/src/lib.rs#L872-L908","documentation":"Error \"ports are not allowed in path URIs\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/utils/path-uri/src/lib.rs:890 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"}