[rabbitmq-discuss] Default vhost and Http API
Félix López
jaaaelpumuki at gmail.com
Tue Mar 27 15:37:27 BST 2012
You can see in https://gist.github.com/2172067 I'm escaping the / but some
tools unescape it again, that´s why It's a pain.
People can create all those names but I think rabbitmq is promoting that.
IHMO the default vhost shouldn't be /, I don't know maybe i'm a little
annoying with this :)
2012/3/27 Simon MacMullen <simon at rabbitmq.com>
> 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<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
>
--
http://www.linkedin.com/in/flopezluis
It's easier to ask forgiveness than it is to get permission
".....it doesn't matter how many times you fail. It doesn't matter how many
times you almost get it right. No one is going to know or care about your
failures, and either should you. All you have to do is learn from them and
those around you because...All that matters in business is that you get it
right once. Then everyone can tell you how lucky you are."
--Mark Cuban"
"Always be the worst guy in every band you're in." If you're the best guy
there, you need to be in a different band. And I think that works for
almost everything that's out there as well." Pat Metheny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120327/d7f23802/attachment.htm>
More information about the rabbitmq-discuss
mailing list