[rabbitmq-discuss] duplicate 'messages' queue attribute in HTTP API JSON response?

Simon MacMullen simon at rabbitmq.com
Thu Jun 2 15:52:44 BST 2011


On 02/06/11 15:21, Brian K. Jones wrote:
> I'm running RabbitMQ w/ the mgmt plugin and I discovered while using the
> HTTP API that when I ask for /api/queues, the JSON response is a list of
> JSON objects that each have *two* instances of the "messages" attribute.
> Is this a bug?

Yes.

> If so, is it fixed somewhere already?

No.

> Is there any reason
> for the code I'm writing not to throw away the duplicate?

No.

> I did a quick
> test and published a message that went to one of the queues, and
> confirmed that both instances of "messages" has the same value whether
> there are messages in the queue or not.

That's correct. This bug has been around since forever, thank you for 
spotting it. Both copies of "messages" will have the same value, so it's 
harmless.

I'll get this fixed...

Cheers, Simon

-- 
Simon MacMullen
Staff Engineer, RabbitMQ
SpringSource, a division of VMware



More information about the rabbitmq-discuss mailing list