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

"true" returned when trying to update template screen

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.1 (alpha)
    • Fix Version/s: 1.9.2 (alpha)
    • Component/s: API (A)
    • Labels:
      None

      Description

      1. attempting to update template screen just returns "true" (wtf ?) and the screen is not updated.
      2. updating a normal screen also returns just "true" (even though it works this time). that is not consistent with docs, which imply that screen id should be returned.

      (if needed, these problems can be split in individual issues)

      documentation at http://www.zabbix.com/documentation/2.0/api/templatescreen is limited and for the update call just links back to 1.8 docs for screen updating.

      example session :

      Sending: { "jsonrpc":"2.0", "method":"templatescreen.update", "params":[{ "name":"Zabbix translation status", "screenid": "5", "hsize":"4", "vsize":"4", "screenitems":[

      { "resourcetype":"0", "resourceid":"23", "width":"300", "height":"150", "x":"0", "y":"0" }

      ,

      { "resourcetype":"0", "resourceid":"29", "width":"300", "height":"150", "x":"1", "y":"0" }

      ,

      { "resourcetype":"0", "resourceid":"25", "width":"300", "height":"150", "x":"2", "y":"0" }

      ,

      { "resourcetype":"0", "resourceid":"41", "width":"300", "height":"150", "x":"3", "y":"0" }

      ,

      { "resourcetype":"0", "resourceid":"17", "width":"300", "height":"150", "x":"0", "y":"1" }

      ,

      { "resourcetype":"0", "resourceid":"31", "width":"300", "height":"150", "x":"1", "y":"1" }

      ,

      { "resourcetype":"0", "resourceid":"33", "width":"300", "height":"150", "x":"2", "y":"1" }

      ,

      { "resourcetype":"0", "resourceid":"13", "width":"300", "height":"150", "x":"3", "y":"1" }

      ,

      { "resourcetype":"0", "resourceid":"15", "width":"300", "height":"150", "x":"0", "y":"2" }

      ,

      { "resourcetype":"0", "resourceid":"43", "width":"300", "height":"150", "x":"1", "y":"2" }

      ,

      { "resourcetype":"0", "resourceid":"27", "width":"300", "height":"150", "x":"2", "y":"2" }

      ,

      { "resourcetype":"0", "resourceid":"39", "width":"300", "height":"150", "x":"3", "y":"2" }

      ,

      { "resourcetype":"0", "resourceid":"37", "width":"300", "height":"150", "x":"0", "y":"3" }

      ,

      { "resourcetype":"0", "resourceid":"19", "width":"300", "height":"150", "x":"1", "y":"3" }

      ,

      { "resourcetype":"0", "resourceid":"21", "width":"300", "height":"150", "x":"2", "y":"3" }

      ,

      { "resourcetype":"0", "resourceid":"35", "width":"300", "height":"150", "x":"3", "y":"3" }

      ] }], "auth":"82aab11c3f2bb3bb85cbecd137723d8a", "id":2 }
      Response Code: 200
      Response Body:

      {"jsonrpc":"2.0","result":true,"id":2}

      ps. i only started to mess with the api because xml export/import was broken... blame yourself

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: