Bug 724977 - Boolean queue arguments are always evaluated as true
Summary: Boolean queue arguments are always evaluated as true
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: 1.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: mick
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks: 698367 803771
TreeView+ depends on / blocked
 
Reported: 2011-07-22 13:27 UTC by Jason Dillaman
Modified: 2013-06-05 13:03 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-05 13:03:59 UTC
Target Upstream Version:


Attachments (Terms of Use)

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'}
..


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