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

Wrong template converting with JavaScript preprocessing in item from 5.0 version

XMLWordPrintable

    • Sprint 76 (May 2021), Sprint 77 (Jun 2021)
    • 0.25

      Steps to reproduce:

      1. Create template with item in 5.0 version
      2. Add JavaScript preprocessing with value
        // Convert Apache status to JSON
        var lines = value.split('\n');
        var output = {},
            workers = {
                me:be
            };
        
      3. Export template
        zbx_export_templates_js.xml
      4. Import file in 5.4
      5. Import file again in 5.4
      6. Check javascript diff

      Result:
      each line of javascript are in quotes

      Expected:
      no quotes

        1. js_52.png
          js_52.png
          31 kB
        2. js.png
          js.png
          48 kB
        3. zbx_export_templates_js.xml
          1.0 kB

            jfreibergs Janis Freibergs
            natalja.zabbix Natalja Romancaka
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: