Bug 1006962

Summary: [amqp1.0] translation of x-declare into properties doesn't convert the 'type' property
Product: Red Hat Enterprise MRG Reporter: Petr Matousek <pematous>
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matousek <pematous>
Severity: medium Docs Contact:
Priority: medium    
Version: DevelopmentCC: esammons, iboverma, jross
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-cpp-0.22-14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-21 12:56:02 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-09-11 15:08:42 UTC
Description of problem:

As a result of the missing conversion, it's not possible to declare exchanges in the 0-10 style, ie:
"myxml;{create:always,node:{type:topic,x-declare:{type:xml}}}"

The result of the command above is that the created exchange is always of type 'topic'.

The conversion shall be implemented in order to guarantee the backwards compatibility.

Note: Exchanges may be declared using following address string when using amqp1.0:
myxml;{create:always:node:{type:topic,properties:{exchange-type:xml}}}

Version-Release number of selected component (if applicable):
qpid-cpp-*-0.22-13.el6

How reproducible:
100%

Steps to Reproduce:
1. spout "myxml;{create:always,node:{type:topic,x-declare:{type:xml}}}"
2. qpid-config exchanges
3. created 'myxml' echange is of type 'topic' (shall be 'xml')

Actual results:
translation of x-declare into properties doesn't convert the 'type' property
unable to define exchanges by using the 0-10 compatible address string 

Expected results:
translation of x-declare into properties converts also the 'type' property
same address string may be used for exchanges declaration over amqp0-10 and amqp1.0

Additional info:

Comment 1 Gordon Sim 2013-09-11 16:07:22 UTC
Fixed upstream by https://svn.apache.org/r1521919

Comment 2 Petr Matousek 2013-11-25 10:53:36 UTC
This issue has been fixed. Verified on rhel6.5 (i386, x86_64).

packages used for testing:
qpid-cpp-*-0.22-29.el6

-> VERIFIED