Bug 724977

Summary: Boolean queue arguments are always evaluated as true
Product: Red Hat Enterprise MRG Reporter: Jason Dillaman <jdillama>
Component: qpid-cppAssignee: mick <mgoulish>
Status: CLOSED CURRENTRELEASE QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.3CC: gsim, iboverma, jross, pmoravec
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-05 13:03:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 698367, 803771    

Description Jason Dillaman 2011-07-22 13:27:16 UTC
Description of problem:
When specifying boolean queue arguments such as 'qpid.last_value_queue' or 'qpid.persist_last_node', the presence of the argument sets the property to true even if the argument was set to false.

Version-Release number of selected component (if applicable):
qpid-cpp-server-0.7.946106-32_ptc_hotfix_6_v3.el5

How reproducible:
100%

Steps to Reproduce:
1. Create a queue with the arguments 'qpid.last_value_queue:False' or 'qpid.persist_last_node:False'
  
Actual results:
In the example above, the queue will be flagged as a last value queue with the persist last node logic enabled.

Expected results:
The queue would not be a last value queue and the persist last node logic would be disabled.

Additional info:

Comment 1 Pavel Moravec 2013-06-05 13:03:59 UTC
Checking on 0.18-14 / MRG 2.3, it works for me - most probably fixed meantime.

$ qpid-receive -a "MyQueue5; {create:always, node:{ x-declare:{ arguments:{ 'qpid.last_value_queue':'false', 'qpid.persist_last_node':'false', 'qpid.msg_sequence':'false', 'qpid.queue_event_generation':'false' }}}}" -m 1
$ qpid-tool
qpid: list queue
Object Summary:
    ID   Created   Destroyed  Index
    =====================================================================
    129  10:58:51  -          145.MyQueue
    130  11:00:39  -          145.MyQueue2
    131  11:02:46  -          145.MyQueue4
    132  11:03:25  -          145.MyQueue5
    133  11:03:37  -          145.qmfc-v2-hb-pmoravec-mrg-train1.8100.1
    134  11:03:37  -          145.qmfc-v2-pmoravec-mrg-train1.8100.1
    135  11:03:37  -          145.qmfc-v2-ui-pmoravec-mrg-train1.8100.1
    136  11:03:37  -          145.reply-pmoravec-mrg-train1.8100.1
    137  11:03:37  -          145.topic-pmoravec-mrg-train1.8100.1
qpid: show 132
Object of type: org.apache.qpid.broker:queue:_data(eea79fae-cc9b-f028-eab3-7d4af740d427)
    Attribute              132
    ============================================================================================================================================================================
    vhostRef               145
    name                   MyQueue5
    durable                False
    autoDelete             False
    exclusive              False
    arguments              {u'qpid.queue_event_generation': u'false', u'qpid.last_value_queue': u'false', u'qpid.msg_sequence': u'false', u'qpid.persist_last_node': u'false'}
..