-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
5.0.34, 6.0.17, 6.4.2rc2, 7.0.0alpha1
Steps to reproduce:
- Create drule with dcheck e.g. :
-) FTP port 21 - Update drule FTP check via API request using dcheckid param with non-existent id:
{ "jsonrpc": "2.0", "method": "drule.update", "params": { "druleid": "3", "dchecks": [ { "dcheckid": "{NON_EXISTENT_ID}", "type": "3", "ports": "21" } ] }, "id": 1 }
- Check apache2 error.log
Result: An error appears in apache2 error.log:
[Tue Apr 25 13:36:59.256219 2023] [php:warn] PHP Warning: Undefined array key 777 in /home/zabbix/workspace/master/ui/include/classes/db/DB.php on line 787
and no validation error in API:
Expected: No php warning should appear. The validation error should appear on API.
- part of
-
ZBXNEXT-8351 Implement audit for frontend (Discovery rule)
- Ready for QA