You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Yeray Borges (JIRA)" <ji...@apache.org> on 2018/02/07 13:14:00 UTC
[jira] [Created] (ARTEMIS-1668) The list of subscribers does not
return json array of consumers
Yeray Borges created ARTEMIS-1668:
-------------------------------------
Summary: The list of subscribers does not return json array of consumers
Key: ARTEMIS-1668
URL: https://issues.apache.org/jira/browse/ARTEMIS-1668
Project: ActiveMQ Artemis
Issue Type: Bug
Affects Versions: 2.4.0, 1.5.5
Reporter: Yeray Borges
Output of {{listAllSubscriptionsAsJSON}}, {{listDurableSubscriptionsAsJSON}}, {{listNonDurableSubscriptionsAsJSON}} contains attribute {{consumers}}. The json produced by these operations contains {{consumers}} value escaped and presented as a plain String. For example:
{noformat}
[
{
"queueName": "b7348eab-e13f-437b-a4ca-1e6f2be490c22.c740ec86-5cbe-4b7a-8ee5-073a746f7c3a2",
"clientID": "b7348eab-e13f-437b-a4ca-1e6f2be490c22",
"selector": null,
"name": "c740ec86-5cbe-4b7a-8ee5-073a746f7c3a2",
"durable": true,
"messageCount": 0,
"deliveringCount": 0,
"consumers": "[{\"consumerID\":0,\"connectionID\":\"4361e1bc-0c08-11e8-9e9e-a860b61ba3b9\",\"sessionID\":\"43622fe0-0c08-11e8-9e9e-a860b61ba3b9\",\"browseOnly\":false,\"creationTime\":1518009026461}]"
}
]
{noformat}
If some external tooling reads value of attribute {{consumers}}, it can not be treated like a Json array of objects. It must be handled as a regular String instead.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)