Bug 739941

Summary: Unable to set message id using python spout
Product: Red Hat Enterprise MRG Reporter: Petr Matousek <pematous>
Component: python-qpidAssignee: messaging-bugs <messaging-bugs>
Status: NEW --- QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: DevelopmentCC: jross
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: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Petr Matousek 2011-09-20 14:04:06 UTC
Description of problem:

Non-floating-point value cannot be used as message id, moreover message id is not correctly set using python spout.

Version-Release number of selected component (if applicable):
python-qpid-0.10-1

How reproducible:
100%

Steps to Reproduce:
1. qpid-config add queue q
2. spout -i 1-0 q
3. error regarding invalid floating-point value occurs
4. spout -i 1 q
5. drain q
6. message id of the consumed message does not correspond with the id submitted by the user in point 4

please see additional info for details.
  
Actual results:
Unable to set message id using python spout

Expected results:
Message id is handled correctly

Additional info:

The following code demonstrates that message id can not be set using python client, c++ client doesn't suffer from that.

# qpid-config add queue q
# $cppapi/spout -i 0-1 q
# $pyapi/spout -i 0-1 q
usage: spout [options] ADDRESS [ CONTENT ... ]

spout: error: option -i: invalid floating-point value: '0-1'
# $pyapi/spout -i 1 q
# $pyapi/drain q
Message(user_id='', correlation_id='', properties={'x-amqp-0-10.routing-key': u'q', u'spout-id': '0-1:0'}, content_type=u'')
Message(properties={'x-amqp-0-10.routing-key': u'q', u'spout-id': u'613b7f99-ca40-804f-b891-68bbffa39dd9:0'})