Bug 841845 - python client does not support multi-byte characters (UTF-8) in address
Summary: python client does not support multi-byte characters (UTF-8) in address
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: python-qpid
Version: 2.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-20 11:41 UTC by Leonid Zhaldybin
Modified: 2025-02-10 03:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:20:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Leonid Zhaldybin 2012-07-20 11:41:08 UTC
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.

Comment 3 Red Hat Bugzilla 2025-02-10 03:20:19 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


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