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

unable to clone or import templates containing trigger_prototypes

    XMLWordPrintable

Details

    • Incident report
    • Resolution: Duplicate
    • Critical
    • None
    • 2.0.0, 2.0.1, 2.1.0
    • API (A), Frontend (F)
    • None

    Description

      I tried to import a previously exported template with some discovery rules containing trigger_prototypes and the import failed with:

      Undefined index: expression [api/classes/CTriggerPrototype.php:1288]
      Undefined index: expression [api/classes/CTriggerPrototype.php:1290]
      Cannot implode expression "".

      I manually removed the <trigger_prototypes> sections from the template and it was imported succesfully.

      I then tried to Full Clone the existing Template OS Linux, renamed to Template OS Linux 2 but when I clicked the "Save" button, it also failed with the same exact error.

      I tested it with the latest 2.0.0 stable, then tested using the frontend from 2.0.1rc1 and with the frontend from 2.1.0 (trunk), they all failed with the same error (but slightly different line number on the exception probably due to code changes between versions).

      The reported error was generated by Zabbix frontend 2.0.0 stable.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gabriele.armao Gabriele Armao
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: