Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Centos, Ubuntu
Description
When I try to connect to an AMQP endpoint using the URL of the form amqp://user:password@host:port, I get an error about a missing "plain" method. This occurs in this line. This error can be reproduced simply using the following code
2.3.3 :001 > require "qpid_proton" => true 2.3.3 :002 > transport = Qpid::Proton::Transport.new => #<Qpid::Proton::Transport:0x00000002754548 @impl=#<SWIG::TYPE_p_pn_transport_t:0x00000002754520 @__swigtype__="_p_pn_transport_t", @proton_wrapper=#<Qpid::Proton::Transport:0x00000002754548 ...>>> 2.3.3 :003 > sasl = transport.sasl => #<Qpid::Proton::SASL:0x00000002748518 @impl=#<SWIG::TYPE_p_pn_sasl_t:0x000000027484f0 @__swigtype__="_p_pn_sasl_t">> 2.3.3 :004 > sasl.plain('', '') NoMethodError: undefined method `plain' for #<Qpid::Proton::SASL:0x00000002748518> from (irb):4 from /usr/share/rvm/rubies/ruby-2.3.3/bin/irb:11:in `<main>'
I have tried in Ubuntu 16.04 installing Proton via system packages and gem 0.10.1 from Rubygems as well as in Centos 7, following the source code install guide.
I wonder if this method should be exposed by Swig somehow? Python binding does not use it in that way, but it does set the username and password on the connection.
Attachments
Issue Links
- links to