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

Script item error on parsing parameters if no parameters defined

XMLWordPrintable

      Steps to reproduce:

      1. Create Script item without parameters.
      2. Click "Test".

      Script item body:

      var input = JSON.parse(value);
      
      return JSON.stringify(input);
      

      Result:

      Cannot execute script: SyntaxError: invalid json (at offset 1)
      at [anon] (duktape.c:37568) internal
      at parse () native strict preventsyield
      at [anon] (function:1) preventsyield
      

      Expected:
      No errors. Empty string is returned.

            zabbix.dev Zabbix Development Team
            gcalenko Gregory Chalenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: