[rabbitmq-discuss] Bug? STOMP adaptor created queues with invalid UTF-8 characters
Toby Corkindale
toby.corkindale at strategicdata.com.au
Mon Feb 13 02:17:36 GMT 2012
Hi,
I *think* I've found symptoms of a bug in the RabbitMQ STOMP adaptor.
We're using /topic/ subscriptions in our applications, and the STOMP
adaptor creates some temporary queues in RabbitMQ.
If you subscribe to /topic/foo.bar.123 it'll create a queue of the
pattern stomp.dsub.foo.bar.123.XXXXXXXXXXXXXXXX
where the Xs are random characters.
It recently managed to create some with invalid UTF8 in the random
section of the queue name. This broke the web management interface and
the JSON REST API.
=ERROR REPORT==== 13-Feb-2012::13:05:44 ===
webmachine error: path="/api/queues//"
{error,{exit,{ucs,{bad_utf8_character_code}},
[{xmerl_ucs,from_utf8,1},
{mochijson2,json_encode_string,2},
{mochijson2,'-json_encode_proplist/2-fun-0-',3},
{lists,foldl,3},
{mochijson2,json_encode_proplist,2},
{mochijson2,'-json_encode_array/2-fun-0-',3},
{lists,foldl,3},
{mochijson2,json_encode_array,2}]}}
From the command line, I see:
# rabbitmqctl list_queues -p test
Listing queues ...
stomp.dsub.websurvey.commander.686.���+[FY\003*\177y��� 0
stomp.dsub.websurvey.commander.610.d�+^Ua\005sI�D֍\031\031� 0
...done.
Is this intended behaviour? We've never seen this happen before.
Cheers,
Toby
More information about the rabbitmq-discuss
mailing list