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

Empty tags being present when exporting media type of type webhook

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 4.4.0rc1
    • API (A)

      Case 1:
      Steps to reproduce:

      1. Navigate to Administration → Media types.
      2. Create a media type of type "Webhook".
      3. Fill all mandatory fields.
      4. Leave "Parameters" as is.
      5. Save the new media type and export it.
      6. Open XML export file in any code editor.

      Result:

      ...
      <parameters>
          <parameter>
              <name>URL</name>
              <value/>
          </parameter>
          ...
      </parameters>
      ...
      

      Expected:

      ...
      <parameters>
          <parameter>
              <name>URL</name>
          </parameter>
          ...
      </parameters>
      ...
      

      Case 2:
      Steps to reproduce:

      1. Navigate to Administration → Media types.
      2. Open the previously created media type configuration.
      3. Remove all "Parameters".
      4. Save the media type and export it.
      5. Open XML export file in any code editor.

      Result:
      Tag <parameters/> is present in XML.

      Expected:
      Tag <parameters/> should not be present in XML.

            zabbix.dev Zabbix Development Team
            agriscenko Andrejs Griščenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: