Bug 964228

Summary: amqp1.0: User shall be warned when using wrong syntax in the address string
Product: Red Hat Enterprise MRG Reporter: Petr Matousek <pematous>
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED ERRATA QA Contact: Petr Matousek <pematous>
Severity: low Docs Contact:
Priority: medium    
Version: DevelopmentCC: jross, lzhaldyb
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-cpp-0.22-4.el6, qpid-cpp-0.22-4.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-24 15:08:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1010399    

Description Petr Matousek 2013-05-17 15:18:40 UTC
Description of problem:

User shall be warned when using wrong syntax, ie.

# ./spout --connection-options "{protocol:'amqp1.0'}"  "q;{create:sender,x-declare:{auto-delete:True}}"

no error message, the queue is created, but naturally it is not auto-del (the x-declare should be in a node:{})

over 0-10 an error is properly reported:
# ./spout "q6;{create:sender,x-declare:{auto-delete:True}}"
Unrecognised option: x-declare

Version-Release number of selected component (if applicable):
qpid-cpp-0.22-2

How reproducible:
100%

Steps to Reproduce:
1. ./spout --connection-options "{protocol:'amqp1.0'}"  "q;{create:sender,{x-declare:{exclusive:True}}"
2. no error notifying user that the syntax is wrong
  
Actual results:
No error by supplying wrong syntax in the address string

Expected results:
Raise an error when the address string syntax is wrong

Additional info:

Comment 1 Gordon Sim 2013-05-24 16:52:12 UTC
Fixed upstream by http://svn.apache.org/viewvc?view=revision&revision=1486115

Comment 2 Petr Matousek 2013-07-02 15:42:48 UTC
The issue has been fixed

Verified on RHEL5.9 and RHEL6.4, architectures: i386, x86_64

packages installed:
qpid-cpp-*-0.22-6

-> VERIFIED

Comment 3 errata-xmlrpc 2014-09-24 15:08:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-1296.html