Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 507538 - method exchange_declare is missing in ruby qpid session class
method exchange_declare is missing in ruby qpid session class
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-sdk (Show other bugs)
1.1.1
All Linux
low Severity low
: 1.3
: ---
Assigned To: messaging-bugs
Frantisek Reznicek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-23 04:44 EDT by Martin Kudlej
Modified: 2015-11-15 19:07 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-10-14 11:58:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0773 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging and Grid Version 1.3 2010-10-14 11:56:44 EDT

  None (edit)
Description Martin Kudlej 2009-06-23 04:44:21 EDT
I try to write ruby test client and I find that session
hasn't method called exchange_declare like python version does.
I'm using ruby-qpid-0.4.749380-2.el5, but I cannot find it in svn
revision 787585 too. Am I doing something wrong or is a bug?

Test client:

require 'qpid'

# define parameters
# -------------------------------------------------------------------------
options = {
  :broker_host =>"127.0.0.1",
  :broker_port => 5672,
  :auth_user => "guest",
  :auth_pass => "guest",
  :exchange_name => "test-name",
  :exchange_type => "topic",
  :exchange_durable => false,
  :exchange_auto_delete => false,
}

 #  Create a socket & connection.
 # -------------------------------------------------------------------------
begin
  connection = Qpid::Connection.new(TCPSocket.new(options[:broker_host], options[:broker_port]), {:username => options[:auth_user], :password => options[:auth_pass]})

  # start connection and session
  # -----------------------------------------------------------------------
  connection.start()
  session = connection.session(name=Qpid::UUID.uuid4().to_s)
rescue Exception => ex
  raise "Cannot connect to the broker #{options[:broker_host]}:#{options[:broker_port]}. Exception name: #{ex}"
end
begin
    session.exchange_declare(exchange=options[:exchange_name],
                             durable=options[:exchange_durable],
                             auto_delete=options[:exchange_auto_delete],
                             type=options[:exchange_type],
                             arguments={})
rescue Exception => e
  session.close(timeout=10)
  puts e.backtrace.join("\n")
  raise "Cannot declare exchange[s], session.exchange_declare() exception. #{e}"
end

# close session & connection
# -------------------------------------------------------------------------
session.close(timeout=10)
Comment 1 Rafael H. Schloming 2009-06-23 09:05:49 EDT
I can confirm this is a bug. It is fixed on trunk as of svn revision 787663.
Comment 4 Frantisek Reznicek 2010-09-23 09:11:01 EDT
The exchange_declare was implemented and is functional.
Tested on RHEL 5.5 i386 / x86_64 on package:
ruby-qpid-0.7.946106-2.el5


-> VERIFIED
Comment 6 errata-xmlrpc 2010-10-14 11:58:13 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2010-0773.html

Note You need to log in before you can comment on or make changes to this bug.