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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2
    • Component/s: Frontend (F)
    • Labels:
      None
    • Environment:
      php

      Description

      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 != "");

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: