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

    Details

    • Type: Problem report
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.4.0rc1
    • Fix Version/s: None
    • Component/s: API (A)

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: