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

The parameters for webhook media type stay saved after update operation with changed type

    XMLWordPrintable

    Details

    • Team:
      Team C
    • Sprint:
      Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021)
    • Story Points:
      0.5

      Description

      Steps to reproduce:

      1. Navigate to Administration -> Media types -> Create media type
      2. Create media type with following data:
        1. Type: Webhook
        2. Script: Please put any js code.
        3. Parameters: Let the default parameters will stay.
        4. Press "Add" button to save a mediatype
      3. Click to edit the created media type.
      4. Change the type from "Webhook" to "SMS", add some text to "GSM modem" and press "Update".
      5. Make API request to method mediatype.get specifying the ID of created media type.
      {
          "jsonrpc": "2.0",
          "method": "mediatype.get",
          "params": {
              "output": "extend",
             "mediatypeids": "<your media type id>"
          },
          "auth": "<your auth key>",
          "id": 1
      }

      Result:
      After changing the type, the response of mediatype.get still contains the parameters for webhook.

      Expected:
      Parameters field contains empty array after media type update with changed type from "Webhook" to any other type.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gcalenko Gregory Chalenko
              Reporter:
              vmaksimovs Vladimirs Maksimovs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: