mirror of
https://github.com/astral-sh/uv
synced 2026-06-21 13:47:25 +00:00
1a1a801a1e
## Summary - make URL credential extraction fallible - reject percent-decoded usernames and passwords that are not valid UTF-8 - propagate credential decoding errors through index, Git, project, publish, and HTTP client paths - identify failing indexes with their display-safe URL - add unit and end-to-end regression coverage ## Why Lossy decoding replaced malformed bytes with U+FFFD, silently changing the credential sent on the wire and collapsing distinct inputs. URL parsing remains permissive; the error is raised only when converting URL userinfo into uv's string credential model. Follow-up to https://github.com/astral-sh/uv/pull/19800#discussion_r3398777727. --------- Co-authored-by: Zanie Blue <contact@zanie.dev>