-
Notifications
You must be signed in to change notification settings - Fork 56
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
Binding arguments are not set #147
Comments
Looks like the issue is as trivial as this: the body key used to pass arguments is |
Right, I came to the same conclusion after trying to invoke the HTTP API manually via curl. Thank you for investigating on your behalf. I will submit a PR. Note to self: this also applies to https://github.com/rabbitmq/hop/blob/master/src/main/java/com/rabbitmq/http/client/Client.java#L669 |
I am sorry, I have to correct myself. I won't be able to work on this in the intermediate future, as my Groovy skills are basically non-existing. I currently don't have much time to invest in getting some basic Groovy knowledge. I might be able to take this up somewhere in the beginning of March, but I would rather not promise anything as of now. |
I pushed a fix without any tests since it's a pretty trivial typo. @acogoluegnes should we reopen to add a test? |
It looks like you forgot to change line https://github.com/rabbitmq/hop/blob/master/src/main/java/com/rabbitmq/http/client/Client.java#L708 as well. |
The typo was introduced 4 years ago in b0e3cf0 :) |
@michaelklishin Yes, let's re-open, I'll add a test hopefully before the end of the week. |
This is fixed and tested for both clients. I'll cut a patch release tomorrow. |
@michaelklishin and @acogoluegnes: thanks a lot |
I am using hop to configure our RabbitMQ exchanges and queues. Everything is working fine, except exchange-to-exchange bindings. The arguments do not seem to be set when applying
declareExchange
.The following example demonstrates the issue I am seeing:
Here, I first declare two exchanges
e1
(a headers exchange) ande2
(a fanout exchange). Then, I want to binde1
->e2
with the header mappingmy_identifier
toabc
. The exchanges are created as expected, but the propertymy_identifier
in the binding does not seem to be set. I verified this by going to the management interface.When creating these exchanges and binding manually in the management interface, everything is working fine.
RabbitMQ broker: 3.7.11
http-client: 3.1.0-RELEASE
The text was updated successfully, but these errors were encountered: