Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-6229

java gateway json has extra spaces

XMLWordPrintable

      zabbix java gateway includes extra spaces in it's responses. other components do not do that. this is not consistent and also increases the amount of traffic.
      for example :

      { "response" : "failed", "error" : "java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]" }

      other components would format the beginning of the above response as :

      {"response":"failed","error" :

      it is also not consistent across different java gateway messages. for example, it also returns :

      {
      "data": [

      {"value": "1348360"}

      ],
      "response": "success"
      }

            Unassigned Unassigned
            richlv richlv
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: