Hi<div><br></div><div>Those queues are declared from Erlang client across an AMQP link.</div><div>Sorry, I don't know how to get tcpdump.</div><div>But I can give you an input that'll lead to the crash if this is what you want.</div>
<div><div>1> A="<a href="http://queue.name">queue.name</a>".</div><div>"<a href="http://queue.name">queue.name</a>"</div><div>2> term_to_binary(A).</div><div><<131,107,0,10,113,117,101,117,101,46,110,97,109,101>></div>
</div><div>If this binary is used in #'queue.declare'.queue, GUI will crash.</div><div><br></div><div>Brs</div><div>/stone</div><div><br></div><div><div class="gmail_quote">On Tue, Mar 27, 2012 at 9:30 PM, Tony Garnock-Jones <span dir="ltr"><<a href="mailto:tonygarnockjones%2Brabbitmq@gmail.com">tonygarnockjones+rabbitmq@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Stone,<br><br>Sorry, I don't quite understand: how are you declaring the queue? Is it with the Erlang client across an AMQP network link? Or some other client across an AMQP network link? Or is it with the Erlang client in the same Erlang cluster as the server?<br>
<br>If it's across an AMQP network link, perhaps you could paste in tcpdump output showing the bytes sent on the wire during the queue.declare. That way it's crystal clear what's happening.<br><br>If it's not across an AMQP link then yeah, perhaps the Erlang client needs more type-assertionish things in it :-)<br>
<br>Regards,<br> Tony<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">2012/3/27 stone <span dir="ltr"><<a href="mailto:zmstone@gmail.com" target="_blank">zmstone@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi Tony,</div><div><br></div><div>I didn't save the scene, didn't really look into the fault client code.</div><div><div>Just had a quick test, reproduced by using term_to_binary instead of list_to_binary to make the queue name in Erlang client.</div>
<div>Perhaps this WAS exactly the case from the other day. shame :)</div><div><div>I simply though it was UTF used in that case because the crash report has "utf" in it.</div></div><div><br></div></div><div><a href="http://localhost:55672/#/queues" target="_blank">http://localhost:55672/#/queues</a></div>
<div>{error,{exit,{ucs,{bad_utf8_character_code}},</div><div> [{xmerl_ucs,from_utf8,1},</div>
<div> {mochijson2,json_encode_string,2},</div><div> {mochijson2,'-json_encode_proplist/2-fun-0-',3},</div><div> {lists,foldl,3},</div><div> {mochijson2,json_encode_proplist,2},</div>
<div> {mochijson2,'-json_encode_array/2-fun-0-',3},</div><div> {lists,foldl,3},</div><div> {mochijson2,json_encode_array,2}]}}</div><div><br></div><div>Anyway, perhaps rabbit-server should have the name validated before allowing the declaration.</div>
<div><br></div><div>BRs</div><div>/stone</div><br><div class="gmail_quote">
在 2012年3月27日 下午7:27,Tony Garnock-Jones <span dir="ltr"><<a href="mailto:tonygarnockjones%2Brabbitmq@gmail.com" target="_blank">tonygarnockjones+rabbitmq@gmail.com</a>></span>写道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 27 March 2012 12:50, stone <span dir="ltr"><<a href="mailto:zmstone@gmail.com" target="_blank">zmstone@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The other day, we accidentally created queues and bindings with UTF characters in the names.<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></blockquote></div><div><br>A test case would be extremely useful and welcome! Can you remember the exact bytes used in the names? And which GUI actions caused the crashes?<br>
<br>Regards,<br> Tony<br><br>
</div></div>
</blockquote></div><br>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Tony Garnock-Jones<br><a href="mailto:tonygarnockjones@gmail.com" target="_blank">tonygarnockjones@gmail.com</a><br>
<a href="http://homepages.kcbbs.gen.nz/tonyg/" target="_blank">http://homepages.kcbbs.gen.nz/tonyg/</a><br>
</font></span></blockquote></div><br></div>