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

Incorrect "NULL" value validation

XMLWordPrintable

      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.

            iivs Ivo Kurzemnieks
            jelisejev Pavels Jelisejevs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: