[
https://issues.apache.org/jira/browse/QPID-5225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13801650#comment-13801650
]
Kai Qiang Wu commented on QPID-5225:
------------------------------------
Hi Gordon, After some consideration, I don't want to use such Quoting method,
since it can bring other issue for the Openstack code, since it pass str
directly,
create(binary='nova-compute',
host=name,
manager=self.manager)
that create fun will be used to create qpid consumer, which use such name as
part of node topic
node_topic = '%s.%s' % (self.topic, self.host)
Other parts code would call get(host) method, which host is just the str,
If added '' for host str, it means you need manual intelligent check for such
str with '', you need hack that
for example: 'testhe''(bill)', it is not easy to directly get testhe''(bill),
since it also includes ''.
So considering the harmful and dreadful thing, I will not use that way, and
only pass to qpid address with pattern. (follow hostname pattern, the compute
hostname is a standard. I think qpid should use that directly, Not with special
( involved)
Thanks
> qpid address MalformedAddress for parentheses
> ---------------------------------------------
>
> Key: QPID-5225
> URL: https://issues.apache.org/jira/browse/QPID-5225
> Project: Qpid
> Issue Type: Bug
> Environment: Ubuntu 12.04
> qpid 0.14
> qpid-tools 0.12
> Reporter: Kai Qiang Wu
>
> I used Qpid Messaging API (Python), and when created(receiver) use following
> address:
> nova/compute.test,123(bill)@192.168.51.57-443 ; {"node": {"x-declare":
> {"auto-delete": true, "durable": true}, "type": "topic"}, "create": "always",
> "link": {"x-declare": {"auto-delete": false, "exclusive": false, "durable":
> false}, "durable": true, "name": "compute.test,123(bill)@192.168.51.57-443"}}
> But the qpid would complain for address parse for the error like this:
> File "/usr/lib/python2.7/dist-packages/qpid/messaging/endpoints.py", line
> 607, in receiver
> raise e
> MalformedAddress: unrecognized characters line:1,21: for that address,
> I did check, qpid doc said address BNF:
> http://qpid.apache.org/components/programming/book/section-addresses.html#section-address-string-bnf
> it not have token for "(" match, but I am confused when use qpid-config,
> I can create topic like following,
> qpid-config add exchange topic "nova/compute.test,123(bill)@192.168.51.57"
> -a admin/qpid@localhost
> So it seems not right not follow same rule, or I missed something.
> Thanks
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]