Bug 1092382 - Perl client examples issues
Summary: Perl client examples issues
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: perl-qpid
Version: 3.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: 3.0
: ---
Assignee: Darryl L. Pierce
QA Contact: Zdenek Kraus
URL:
Whiteboard:
Depends On:
Blocks: 450912 853859
TreeView+ depends on / blocked
 
Reported: 2014-04-29 08:17 UTC by Zdenek Kraus
Modified: 2015-06-22 00:08 UTC (History)
5 users (show)

Fixed In Version: perl-qpid-0.22-12.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-22 15:27:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
perl examples patch (871 bytes, patch)
2014-04-29 08:17 UTC, Zdenek Kraus
zkraus: review? (dpierce)
Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-5732 0 None None None Never
Red Hat Bugzilla 878940 0 medium VERIFIED spout/drain examples fixes and improvements 2024-01-19 19:11:11 UTC

Internal Links: 878940

Description Zdenek Kraus 2014-04-29 08:17:29 UTC
Created attachment 890685 [details]
perl examples patch

Perl client examples issues

Description of problem:
Perl examples hello_world.pl and map_receiver.pl incorrectly obtain posisional arguments.

hello_world.pl differs from others in fetch where it not use a timeout = 1, it complicates documentation of these examples.


Version-Release number of selected component (if applicable):
perl-qpid-0.22-11


Steps to Reproduce:
1. perl /usr/share/doc/perl-qpid-0.22/examples/hello_world.pl "localhost:5672" "amq.direct"
2. perl /usr/share/doc/perl-qpid-0.22/examples/map_receiver.pl "localhost:5672" "amq.direct"


Actual results:
[1]
2014-04-29 10:00:52 [Client] warning Exception received from broker: not-found: Queue not found: localhost:5672 (/builddir/build/BUILD/qpid-0.22/cpp/src/qpid/broker/QueueRegistry.cpp:127) [caused by 2 \x08:\x01]
Queue localhost:5672 does not exist at /usr/lib/perl5/vendor_perl/qpid/messaging/Session.pm line 314.
2014-04-29 10:00:52 [Client] warning Connection [[::1]:54739-localhost:5672] closed
[2]
2014-04-29 10:01:17 [Client] warning Exception received from broker: not-found: Queue not found: localhost:5672 (/builddir/build/BUILD/qpid-0.22/cpp/src/qpid/broker/QueueRegistry.cpp:127) [caused by 2 \x08:\x01]
Queue localhost:5672 does not exist at /usr/lib/perl5/vendor_perl/qpid/messaging/Session.pm line 314.
2014-04-29 10:01:17 [Client] warning Connection [[::1]:54740-localhost:5672] closed

Expected results:
the queue is takes from second positional argument

Additional info:

Comment 1 Darryl L. Pierce 2014-04-29 15:47:38 UTC
This is fixed upstream in QPID-5732:

https://svn.apache.org/r1591006

Comment 4 Zdenek Kraus 2014-05-21 11:19:15 UTC
tested on RHEL 6.5 i686 && x86_64 with following packages:

python-qpid-0.22-14.el6
qpid-proton-c-0.7-1.el6
qpid-cpp-server-devel-0.22-40.el6
qpid-cpp-server-ha-0.22-40.el6
qpid-jca-0.22-2.el6
qpid-cpp-server-0.22-40.el6
qpid-tools-0.22-12.el6
qpid-java-client-0.22-6.el6
qpid-qmf-debuginfo-0.22-31.el6
qpid-snmpd-debuginfo-1.0.0-16.el6
qpid-cpp-client-devel-docs-0.22-40.el6
qpid-cpp-client-0.22-40.el6
qpid-cpp-client-devel-0.22-40.el6
qpid-tests-0.22-15.el6
qpid-snmpd-1.0.0-16.el6
qpid-cpp-server-linearstore-0.22-40.el6
qpid-java-common-0.22-6.el6
qpid-java-example-0.22-6.el6
qpid-proton-debuginfo-0.7-1.el6
qpid-proton-c-devel-0.7-1.el6
python-qpid-qmf-0.22-31.el6
qpid-qmf-devel-0.22-31.el6
qpid-cpp-server-rdma-0.22-40.el6
qpid-cpp-server-xml-0.22-40.el6
qpid-jca-xarecovery-0.22-2.el6
perl-qpid-debuginfo-0.22-12.el6
qpid-qmf-0.22-31.el6
perl-qpid-0.22-12.el6
qpid-cpp-debuginfo-0.22-40.el6
qpid-cpp-client-rdma-0.22-40.el6
ruby-qpid-qmf-0.22-31.el6


works as expected.


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