<div>You can see in <a href="https://gist.github.com/2172067">https://gist.github.com/2172067</a> I'm escaping the / but some tools unescape it again, that´s why It's a pain.</div><div>People can create all those names but I think rabbitmq is promoting that.</div>
<div><br></div><div>IHMO the default vhost shouldn't be /, I don't know maybe i'm a little annoying with this :) </div><div><br></div><br><div class="gmail_quote">2012/3/27 Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com">simon@rabbitmq.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 27/03/12 01:12, Félix wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Due to the default vhost's name is "/" i'm having troubles with some<br>
tools, for example SoapUI, because they're always making the request<br>
like "api/queues///queue_name/<u></u>contents/", this also happens with the<br>
chrome's bookmarks (<a href="https://gist.github.com/2172067" target="_blank">https://gist.github.com/<u></u>2172067</a>)<br>
</blockquote>
<br></div>
The vhost name should be URL escaped - so "/" becomes "%2f".<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So I'm wondering if something can be done, for instance:<br>
- Change the name, root or default isntead of /<br>
</blockquote>
<br>
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).<br>
<br>
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 ;-)<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- If there isn't a vhost in the url then use the default. (this can<br>
complicate a lot the url mapper)<br>
</blockquote>
<br>
I think this would ultimately be more confusing.<br>
<br>
Cheers, Simon<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, VMware<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://www.linkedin.com/in/flopezluis" target="_blank">http://www.linkedin.com/in/flopezluis</a><br><br>It's easier to ask forgiveness than it is to get permission<br>
<br><br>".....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."<br>
--Mark Cuban"<br><br>"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<br>