Files
zaniebot 1a1a801a1e Reject invalid UTF-8 URL credentials (#19814)
## 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>
2026-06-11 18:01:29 -05:00
..