-
Incident report
-
Resolution: Commercial support required
-
Trivial
-
None
-
None
-
None
-
None
Steps to reproduce:
- 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);
- Edit the host either in modal window or standalone page.
- Add more data - few additional value maps or macros, for example.
- Press clone
- 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.