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

When output of script >65535 symbols, data getting by the web-interface is corrupted and truncated

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.2
    • 1.8.1
    • Frontend (F)
    • None
    • php

      in file include/scripts.inc.php in function execute_script() we see $res = socket_read($socket, 65535);
      It means that data longer than 65535 bytes will be corrupted.
      Fix:
      $reply = "";
      do {
      $recv = "";
      $recv = socket_read($socket, '1400');
      if($recv != "")

      { $reply .= $recv; }

      } while($recv != "");

            Unassigned Unassigned
            inakrin Fyodor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: