ExportXMLWordPrintable

      The method validation should be revised and made stricter. Currently, for some values of the "action" parameter, unsupported parameters are simply ignored, while for others, an error message is returned.

      Example 1
      Request:

      {
        "jsonrpc": "2.0",
        "method": "event.acknowledge",
        "params": {
          "eventids": 5,
          "action": 2,
          "cause_eventid": 5
        },
        "id": 1
      }
      

      Response:

      {
        "jsonrpc": "2.0",
        "error": {
          "code": -32602,
          "message": "Invalid params.",
          "data": "Invalid parameter \"/\": unexpected parameter \"cause_eventid\"."
        },
        "id": 1
      }
      

      Example 2
      Request:

      {
        "jsonrpc": "2.0",
        "method": "event.acknowledge",
        "params": {
          "eventids": 5,
          "action": 2,
          "message": "Message"
        },
        "id": 1
      }
      

      Response:

      {
        "jsonrpc": "2.0",
        "result": {
          "eventids": [
            5
          ]
        },
        "id": 1
      }
      

      Expected: an error message indicating that the message parameter is not supported.

            Assignee:
            Zabbix Development Team
            Reporter:
            Andrejs Griščenko
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: