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

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Major
    • Resolution: Won't fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: