Hi Simon<div><br></div><div>Speaking of escaped characters:</div><div>The other day, we accidentally created queues and bindings with UTF characters in the names.</div><div>Then the management web GUI crashed (on mochiweb level if i remember correctly), so we couldn't delete the queu on GUI.</div>
<div>And there was no CLI to do it, we actually had to reset the node to get rid of the bad-naming queues.</div><div><br></div><div>/stone</div><br><div class="gmail_quote">在 2012年3月27日 下午12:02,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>
</div><div class="im"><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".<div class="im"><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></div>
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 ;-)<div class="im"><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></div>
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</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
</div></div></blockquote></div><br>