[rabbitmq-discuss] Default vhost and Http API

Simon MacMullen simon at rabbitmq.com
Tue Mar 27 11:02:55 BST 2012


On 27/03/12 01:12, Félix wrote:
> Due to the default vhost's name is "/" i'm having troubles with some
> tools, for example SoapUI, because they're always making the request
> like "api/queues///queue_name/contents/", this also happens with the
> chrome's bookmarks  (https://gist.github.com/2172067)

The vhost name should be URL escaped - so "/" becomes "%2f".

> So I'm wondering if something can be done, for instance:
>   - Change the name, root or default isntead of /

It's a slightly unfortunate name. But there's nothing to stop people 
from creating other vhosts with names containing "/" or "?". Or "ß" or " 
塊" or lots of other characters that would need escaping. And it's not 
just vhosts either, queues and exchanges and users and bindings all have 
names (ish in the case of bindings).

Bottom line is, we'll always need escaping. And at least having the 
default vhost require it means people need to get this at least partly 
right in their tools ;-)

>   - If there isn't a vhost in the url then use the default. (this can
> complicate a lot the url mapper)

I think this would ultimately be more confusing.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list