Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2582

Azure Service Bus requires hostname to be set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-c-0.37.0
    • None
    • ruby-binding
    • None

    Description

      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:
       

      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

       
      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.

      Attachments

        Activity

          People

            aconway Alan Conway
            mreinsch Michael Reinsch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: