You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've had this issue reported for lettre and I believe nats.rs has it too lettre/lettre#931
The url crate doesn't percent decode the username and the password, so credentials containing characters like # don't work. Here the credentials should be percent decoded:
paolobarbolini
changed the title
The URL format of the NATS url needs to manually percent decode the username and the password
The NATS url needs to manually percent decode the username and the password
Jan 11, 2024
The impact should be really small, as if you're using ConnectOptions with username and password, we are not passing credentials in URL, but in Connect protocol message.
Only case that affects Rust NATS client is when someone manually passes username and password in the NATS url.
We've had this issue reported for
lettre
and I believe nats.rs has it toolettre/lettre#931
The
url
crate doesn't percent decode the username and the password, so credentials containing characters like#
don't work. Here the credentials should be percent decoded:nats.rs/async-nats/src/lib.rs
Lines 1415 to 1427 in 8c783e0
The text was updated successfully, but these errors were encountered: