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

It's possible to import a host that contains an empty item/discovery_rule/item_prototype name

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 5.0.29, 6.0.10, 6.2.4, 6.4.0beta4
    • None
    • API (A), Frontend (F)
    • Team B

    Description

      Moved from ZBX-16432 subissue #5

      Steps to reproduce:

      • Create a host with a single item.
      • Export host (XML file).
      • Delete the host
      • Delete a value from item <name> field from XML.
      • Import it back. ( import file zbx_export_empty_item_name.xml )

      Result: Host and item are successfully imported. Item has an empty name and there is no option to open the edit screen.

      Note: the same issue appears if discovery_rule and item_prototype name is empty e.g. import file discovery_rule_and_item_prototype_test_import.xml
      On master, validation is missing only if the discovery_rule name is empty.

      Expected: An error should appear during importing process.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            kseve Kirils Seve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: