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

Data lost when cloning elements with large amount of data

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Commercial support required
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

      Steps to reproduce:

      1. Create a host with a substantial amount of data (to simplify the reproducing of this task, value maps from, for example, Alcatel Timetra TiMOS by SNMP2 template can be added to the host via code);
      2. Edit the host either in modal window or standalone page.
      3. Add more data - few additional value maps or macros, for example.
      4. Press clone
      5. Check the network traffic data and make sure that there are more than 1000 input variables:

      Result: Some of the data is lost and an error is logged in the error log: 

      PHP Warning:  Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://192.168.27.4/master/ui/zabbix.php?action=host.edit&hostid=10586 

      Expected: No data is lost and no errors are logged.

      Note: Currently, this problem can be reproduced within the host configuration form. However, it's important to note that this issue will also extend to the template form when it's moved to a modal window.
      The issue arises from the clone functionality, which is more complex than just removing the element ID and adjusting buttons in the form. Instead, it sends all form data to the edit controller. As this data isn't transmitted in JSON format, the number of variables surpasses the 1000 threshold limit.

            bmickiewicz Bartosz Mickiewicz (Inactive)
            esekace Eliza Sekace (Inactive)
            Team B
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: