You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Dominic Evans <do...@uk.ibm.com> on 2015/04/13 18:12:51 UTC

AMQP 1.0 - address URI encoding?

Hi all,

It isn't clear from the 1.0 spec, whether or not addresses are intended to be valid URIs with %-encoding used to escape characters rfc2396-style. It doesn't currently appear as if either the qpid-java or qpid-cpp brokers to URI decoding on the addresses it receives.

For example, if I @attach a pair of sender+receiver links using the address of an:example, should I then be sending messages with a 'to' address of amqp:///an:example or amqp:///private%3Apublic ?

The latter is what I'd expect, but qpid doesn't seem to agree :)

Cheers,
DomUnless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: AMQP 1.0 - address URI encoding?

Posted by Gordon Sim <gs...@redhat.com>.
On 04/13/2015 05:12 PM, Dominic Evans wrote:
> Hi all,
>
> It isn't clear from the 1.0 spec, whether or not addresses are intended to be valid URIs with %-encoding used to escape characters rfc2396-style. It doesn't currently appear as if either the qpid-java or qpid-cpp brokers to URI decoding on the addresses it receives.
>
> For example, if I @attach a pair of sender+receiver links using the address of an:example, should I then be sending messages with a 'to' address of amqp:///an:example or amqp:///private%3Apublic ?
>
> The latter is what I'd expect, but qpid doesn't seem to agree :)

As far as the spec is concerned, the address is just a string. The use 
of a URL is a proton messenger convention.

The c++ broker doesn't actually care about the to (or reply-to) fields. 
Unless it is converting to or from 0-10, it passes the bare message 
through exactly as it receives it. It treats the address of the source 
or target as the name of a node (which it resolves to either a queue or 
an exchange).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org