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

incorrect SQL query when "search" key contains empty string

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • None
    • API (A)

      Steps to reproduce:
      make API request:

      {
        "jsonrpc":"2.0",
        "method":"auditlog.get",
        "params": {
          "output": ["note"],
          "search": {"note":""}
        }
      }
      

      Result:
      API request will fail with PostgreSQL complains on malformed query.
      Expected:
      API request succeed

            zabbix.dev Zabbix Development Team
            gcalenko Gregory Chalenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: