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

No "name" parameter in graph.update() is counted as "name": ""

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:

      Description

      Looks like no "name" parameter in graph.update() is counted as "name": "", not as "do not change graph name" (as it should be, in my opinion), because after sending something like:

      {
      "jsonrpc": "2.0",
      "params": {
      "yaxismax": 496,
      "gitems": [

      { "itemid": "106935", "color": "ee1764" }

      ],
      "graphid": "6779"
      },
      "method": "graph.update",
      "auth": "69376a316c220bbdeeadf90bd4958b59",
      "id": 9
      }

      I've got
      {
      "jsonrpc": "2.0",
      "id": 9,
      "error":

      { "message": "Invalid params.", "code": -32602, "data": "Graph with name \"\" already exists." }

      }

      If I'll add "name" field in my graph.update() request — all works fine.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ojab ojab
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: