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

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

      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.

        1. discovery_rule_and_item_prototype_test_import.xml
          3 kB
          Kirils Seve
        2. screenshot-1.png
          56 kB
          Kirils Seve
        3. screenshot-2.png
          33 kB
          Kirils Seve
        4. zbx_export_empty_item_name.xml
          0.9 kB
          Kirils Seve

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

              Created:
              Updated:
              Resolved: