-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
[rabbitmq_binding] Fix the quoting of vhost and other names #45109
[rabbitmq_binding] Fix the quoting of vhost and other names #45109
Conversation
@Akasurde, when @hyperized refactored this module he just dropped the needed arguments. I've restored them all, the other PR only restored some. Please get the other PR to also properly escape exchange names. They could contain Then we can close this PR as a dupe. |
@towolf Thanks. I will follow up with this. |
@towolf Go ahead and let me know once you are done. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested to be working with rabbitmq 3.7.7 and below:
- rabbitmq_binding:
name: myExchange
destination: myQueue
type: queue
login_host: 192.168.0.2
routing_key: 'info'
It didn't work when I left out routing_key
but I wasn't sure if that was expected behaviour.
@towolf @Akasurde what do we do here? @boite hopefully you can respond so we can merge one or the other :)
…45109) * [rabbitmq_binding] Fix the quoting of vhost and other names, which was broken in PR ansible#35651 * Merge missing urllib_parse.quote from PR ansible#42422 * Missed one line, where also needs to be escaped, i.e., the destination (cherry picked from commit d5f8738) Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* [rabbitmq_binding] Fix the quoting of vhost and other names, which was broken in PR #35651 * Merge missing urllib_parse.quote from PR #42422 * Missed one line, where also needs to be escaped, i.e., the destination (cherry picked from commit d5f8738) Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
SUMMARY
Quoting of vhost and names was broken in PR #35651
See discussion I added to the merged PR:
#35651 (comment)
The
/
char should always be urlencoded, Rabbitmq names the default vhost simp,ly/
. The second param tourllib_parse.quote
sets this and defaults tosafe='/'
, but it isn't here. PR #35651 just removed it.ISSUE TYPE
COMPONENT NAME
rabbitmq_binding.py
ANSIBLE VERSION