-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
amqplib 0.5.3 doesn't connect if rabbitmq password contains a "@" sign. #483
Comments
If url is provided in form of |
FYI, this bug also affects usernames which contain an |
Sorry about the breaking behaviour. It wasn't expected. Prior to 0.5.3 URL parsing was bugged in that usernames with a Introducing url-parse fixes that, but appears to have highlighted another bug in the pre 0.5.3 versions, which illegally allowed
I don't think it's appropriate to "fix" this issue by reverting to the previous invalid and broken behaviour, but one thing we might be able to do is deprecate 0.5.3 and re-release as 0.6.0. What do you think @squaremo? |
Thanks for the suggestion using |
I created a user that happens to have an '@' in the username,
It seems like using the correct encoding does cause problems, and that's a bug most certainly. But reverting it would mean going back to So for now, if this causes problems for you, consider either sticking with the prior version, or using an object value rather than a URL when connecting. Meanwhile we'll try to track down where the problem lies. |
Mystery solved -- I had forgotten to give my new user access to a vhost. Once I did that, it was able to connect, with a percent-encoded username or (after I'd updated it in rabbitmq) password. Can someone post exact instructions, including creating the user, for getting this to fail, please? |
@daboytim @tolik-u @GrayStork still not able to reproduce after changing to percent encoded usernames. Are any of you able to provide exact instructions and ideally a code sample please? |
Closing due to inactivity |
Since 0.5.3, password parsing has changed and now passwords with "@" in them don't work.
Wild guess:
The text was updated successfully, but these errors were encountered: