-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
4.0.47
-
None
Steps to reproduce:
- create a proxy;
- open host form;
- select the proxy;
- secretly delete the proxy in another tab;
- save host
Result:
Error in query [UPDATE hosts SET hostid='10582',host='asd',name='asd',status='0',proxy_hostid='10585',tls_connect='1',tls_accept='1',tls_psk_identity='',tls_psk='',tls_issuer='',tls_subject='' WHERE hostid='10582'] [Cannot add or update a child row: a foreign key constraint fails (`zabbix_zn_7410c`.`hosts`, CONSTRAINT `c_hosts_1` FOREIGN KEY (`proxy_hostid`) REFERENCES `hosts` (`hostid`))] [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerHostUpdate->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CHost->update() → CHost->massUpdate() → DB::update() → DBexecute() → trigger_error() → CConfigFile->{closure}() in conf/zabbix.conf.php:181] SQL statement execution has failed "UPDATE hosts SET hostid='10582',host='asd',name='asd',status='0',proxy_hostid='10585',tls_connect='1',tls_accept='1',tls_psk_identity='',tls_psk='',tls_issuer='',tls_subject='' WHERE hostid='10582'".
- duplicates
-
ZBXNEXT-6998 Implement audit for API host
- READY TO DEVELOP