Michael Reinsch created PROTON-2582:
---------------------------------------
Summary: Azure Service Bus requires hostname to be set
Key: PROTON-2582
URL: https://issues.apache.org/jira/browse/PROTON-2582
Project: Qpid Proton
Issue Type: Bug
Components: ruby-binding
Affects Versions: proton-c-0.37.0
Reporter: Michael Reinsch
Assignee: Alan Conway
When trying to connect to an Azure Service Bus with the ruby bindings, I was
getting the following error from Azure: Host name (open.hostname) must be set.
Checking with the Python bindings, I noticed this line:
[https://github.com/apache/qpid-proton/blob/0c240d12a2ceca3e361a4c6efce86a984c316927/python/proton/_reactor.py#L1052]
I couldn't find something like this in the Ruby bindings, so I have to do
something like the following myself:
{code:java}
c = container.connect(@url, user: CGI.unescape(@url.user), password:
CGI.unescape(@url.password), sasl_allowed_mechs: 'PLAIN', ssl_domain:
ssl_domain)
c.hostname = @url.hostname{code}
Considering that the python bindings are taking care of this and this isn't
mentioned anywhere, it would be good if the ruby bindings did that same.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]