[rabbitmq-discuss] rabbitmq-shovel
Matthew Sackman
matthew at lshift.net
Mon Apr 26 15:32:08 BST 2010
On Wed, Apr 21, 2010 at 07:12:21PM -0600, Scott Brooks wrote:
> I'm not sure if it's stripping the / or not.
Yes. This is probably the most unsavoury part of the schema. The problem
is that a) we need to support vhosts that start with / and that don't
start with /; b) the default vhost is /
Thus:
amqp://user:pass@host/ => vhost = /
amqp://user:pass@host// => vhost = /
amqp://user:pass@host/a => vhost = a
amqp://user:pass@host//a => vhost = /a
So basically, the first / is definitely just a separator, so if your
vhost is not / but does start with a /, then you need to add another /.
The confusion arises because the separator is / and the default vhost is
also /
Matthew
More information about the rabbitmq-discuss
mailing list