-
Incident report
-
Resolution: Fixed
-
Major
-
2.1.2
If I enter the value "NULL" in some form (for example, the host configuration form), the frontend displays an error:
Incorrect value "NULL" for NOT NULL field "host". [hosts.php:453 ? CAPIObject->create() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CHost->create() ? DB::insert() ? DB::checkValueTypes() ? DB::exception() in /opt/lampp/htdocs/zabbix/trunk/frontends/php/include/classes/db/DB.php:332]
This is because the DB::checkValueTypes() function incorrectly validates the string "NULL" as a NULL value. "NULL" must be written in upper case.