You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2020/01/13 18:00:03 UTC

[jira] [Resolved] (ARTEMIS-1668) The list of subscribers does not return json array of consumers

     [ https://issues.apache.org/jira/browse/ARTEMIS-1668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Bertram resolved ARTEMIS-1668.
-------------------------------------
    Resolution: Won't Fix

> 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: 1.5.5
>            Reporter: Yeray Borges
>            Priority: Major
>
> 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
(v8.3.4#803005)