[
https://issues.apache.org/jira/browse/QPID-5225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13800683#comment-13800683
]
Gordon Sim commented on QPID-5225:
----------------------------------
I'm not sure if I fully understand the question, so if I miss the mark ask
again!
The address string is designed to allow for very simple addresses - basically
just an opaque name, or perhaps a name qualified by a subject of interest - but
also provide a mechanism to control how the library handles the request in much
more detail. There are some symbols that are therefore used to delimit
different 'parts' of the address (the three main parts being name, subject and
options). If you want to use one of the delimiters within a part then it needs
to be escaped in some way. Using quotes for that seemed like a reasonable
choice. As for why the specific delimiter symbols were picked , well, the '/'
char seemed an obvious one for dividing name from subject ('.' would have been
another, but that was already used in AMQP defined names e.g. amq.direct), then
';' was used to separate the options and the options themselves follow a
pythonesque syntax ([a,b,c] for lists, {name:value} for maps).
> 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]