Bug 841845 - python client does not support multi-byte characters (UTF-8) in address
python client does not support multi-byte characters (UTF-8) in address
Status: NEW
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: python-qpid (Show other bugs)
2.2
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Ernie
MRG Quality Engineering
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-20 07:41 EDT by Leonid Zhaldybin
Modified: 2014-11-09 17:39 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Leonid Zhaldybin 2012-07-20 07:41:08 EDT
Description of problem:
Python client is unable to send a message to a queue with multi-byte characters in its name. I tried the example spout and drain scripts from python-qpid package, as well as a very basic example from "Programming in Apache Qpid" guide. The clients say "unrecognised characters line":

[root@lzhaldyb-rhel63x ~]# qpid-config add queue йцукенг
[root@lzhaldyb-rhel63x ~]# echo $?
0
[root@lzhaldyb-rhel63x ~]# qpid-config queues
Queue Name                          Attributes
=======================================================
qmfc-v2-hb-lzhaldyb-rhel63x.8856.1  auto-del excl --limit-policy=ring 
qmfc-v2-lzhaldyb-rhel63x.8856.1     auto-del excl 
qmfc-v2-ui-lzhaldyb-rhel63x.8856.1  auto-del excl --limit-policy=ring 
reply-lzhaldyb-rhel63x.8856.1       auto-del excl 
topic-lzhaldyb-rhel63x.8856.1       auto-del excl --limit-policy=ring 
йцукенг                      
[root@lzhaldyb-rhel63x ~]# /usr/share/doc/python-qpid-0.14/examples/api/spout йцукенг
Traceback (most recent call last):
  File "/usr/share/doc/python-qpid-0.14/examples/api/spout", line 101, in <module>
    snd = ssn.sender(addr)
  File "<string>", line 6, in sender
  File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 583, in sender
    raise e
qpid.messaging.exceptions.MalformedAddress: unrecognized characters line:1,0: йцукенг

Version-Release number of selected component (if applicable):
python-qpid-0.14-9.el6_3
python-qpid-0.14-7.el5

How reproducible:
100%

Steps to Reproduce:
1. Create a queue with multi-byte characters in the name: 'qpid-config add queue ěščřžýá'
2. Try to send a message to the newly created queue: '/usr/share/doc/python-qpid-0.14/examples/api/spout ěščřžýá'
3.
  
Actual results:
The client is unable to send a message to such an address.

Expected results:
The client sends a message successfully.

Additional info:
c++ clients do not have this problem.

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