qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-1814) core/terminus.rb:239:in `block in apply': undefined method[s ...] for #<Qpid::Proton::Terminus: ...> (NoMethodError)
Date Tue, 10 Apr 2018 21:17:01 GMT

    [ https://issues.apache.org/jira/browse/PROTON-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16433007#comment-16433007
] 

ASF subversion and git services commented on PROTON-1814:
---------------------------------------------------------

Commit 4bc6e125aeabdf3a2ae9f8e8c354e4ec5a9ac96d in qpid-proton's branch refs/heads/go1 from
[~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=4bc6e12 ]

PROTON-1814: [ruby] undefined methods for #<Qpid::Proton::Terminus>

Fixed incorrect code in Terminus#apply, added unit test.


> core/terminus.rb:239:in `block in apply': undefined method[s ...] for #<Qpid::Proton::Terminus:
...> (NoMethodError)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: PROTON-1814
>                 URL: https://issues.apache.org/jira/browse/PROTON-1814
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: ruby-binding
>    Affects Versions: proton-j-0.22.0
>         Environment: commit b6436ff34ecd091ffd49c091405c8a543479eb30 (upstream/master)
> Author: Andrew Stitcher <astitcher@apache.org>
> Date:   Fri Mar 23 16:40:04 2018 -0400
>     PROTON-1810: Disable fuzz regression testing on MacOSX differently
>     - Feedback from release manager
>            Reporter: Jiri Daněk
>            Assignee: Alan Conway
>            Priority: Major
>             Fix For: proton-c-0.22.0
>
>
> {noformat}
> bin/cli-proton-ruby-receiver -c 1 --log-msgs dict --broker amqp://127.0.0.1:5672/lala
--log-msgs dict
> /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/terminus.rb:239:in `block
in apply': undefined method `filter=' for #<Qpid::Proton::Terminus: address="lala" dynamic?=false>
(NoMethodError)
> 	from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/terminus.rb:231:in
`each_pair'
> 	from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/terminus.rb:231:in
`apply'
> 	from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/receiver.rb:51:in
`open'
> 	from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/session.rb:117:in
`open_receiver'
> 	from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection.rb:217:in
`open_receiver'
> 	from /home/jdanek/Work/repos/cli-proton-ruby/lib/handlers/receiver_handler.rb:102:in
`on_container_start'
> 	from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/adapter.rb:74:in
`forward'
> 	from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/messaging_adapter.rb:27:in
`delegate'
> 	from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/messaging_adapter.rb:38:in
`on_container_start'
> 	from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/container.rb:144:in
`run_one'
> 	from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/container.rb:347:in
`run'
> 	from /home/jdanek/Work/repos/cli-proton-ruby/lib/receiver_client.rb:48:in `initialize'
> 	from /home/jdanek/Work/repos/cli-proton-ruby/bin/cli-proton-ruby-receiver:21:in `new'
> 	from /home/jdanek/Work/repos/cli-proton-ruby/bin/cli-proton-ruby-receiver:21:in `<top
(required)>'
> 	from -e:1:in `load'
> 	from -e:1:in `<main>'
> Process finished with exit code 1
> {noformat}
> After investigation of the method Qpid::Proton::Terminus#apply at qpid_proton-0.22.0/lib/core/terminus.rb:226
> {noformat}
>     def apply(opts=nil)
>       return unless opts
>       if opts.is_a? String      # Shorthand for address
>         self.address = opts
>       else
>         opts.each_pair do |k,v|
>           case k
>           when :address then self.address = v
>           when :dynamic then self.dynamic = !!v
>           when :distribution_mode then self.distribution_mode = v
>           when :durability_mode then self.durability_mode = v
>           when :timeout then self.timeout = v
>           when :expiry_policy then self.expiry_policy = v
>           when :filter then self.filter = v
>           when :capabilities then self.capabilities = v
>           end
>         end
>       end
>     end
> {noformat}
> I figure there are these three accessors missing
> Getter:
> {noformat}
> undefined method `dynamic' for #<Qpid::Proton::Terminus: address="lala" dynamic?=false>
> {noformat}
> Setters:
> {noformat}
> undefined method `filter=' for #<Qpid::Proton::Terminus: address="lala" dynamic?=false>
> undefined method `capabilities=' for #<Qpid::Proton::Terminus: address="lala" dynamic?=false>
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message