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

'Uncaught DOMException' console error appears when trying to test media type with custom script

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 5.0.33, 6.0.17rc1, 6.4.1, 7.0.0alpha1
    • Frontend (F)

      Steps to reproduce:

      • Create media type or import from zbx_export_mediatypes.yaml :
        -) Type -> Webhook
        -) Script
        for (var i = 0; i < 8000; i++) {
        console.warn('a'.repeat(10000));
        }
        
      • Turn on the Zabbix server and run 'Test' for the newly created media type

      Result: Test media type form loads infinitely. Console error ->

      caught DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'mediatypetest' exceeded the quota.
          at Object.success (<anonymous>:42:20)
          at fire (http://kstest-virtualbox/master/jsLoader.php?lang=en_US&ver=7.0.0alpha1&showGuiMessaging=1:3502:31)
          at Object.fireWith [as resolveWith] (http://kstest-virtualbox/master/jsLoader.php?lang=en_US&ver=7.0.0alpha1&showGuiMessaging=1:3632:7)
          at done (http://kstest-virtualbox/master/jsLoader.php?lang=en_US&ver=7.0.0alpha1&showGuiMessaging=1:9798:14)
          at XMLHttpRequest.<anonymous> (http://kstest-virtualbox/master/jsLoader.php?lang=en_US&ver=7.0.0alpha1&showGuiMessaging=1:10059:9)
      

      Expected: No console errors should appear.

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

              Created:
              Updated:
              Resolved: