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

method action.exists doesn't validate required params and returns TRUE

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Critical
    • Resolution: Won't fix
    • 1.8.14rc1, 2.1.0
    • None
    • API (A)

    Description

      Existing action: name => Action2
      This method returns true (which is wrong) in any cases if something is wrong in request.

      Request:

      {"jsonrpc":"2.0","method":"action.exists","params":{"nasdsdfsdffme":"Action2w"},"id":0,"auth":"4fa77f1cd19429940ad7e8119b624739"}
      Response: 
      {    "jsonrpc":"2.0",
          "result":true,
          "id":0}
      

      Request:

      {"jsonrpc":"2.0","method":"action.exists","params":{"name":"Action2w"},"id":0,"auth":"4fa77f1cd19429940ad7e8119b624739"}
      Response: 
      {    "jsonrpc":"2.0",
          "result":false,
          "id":0}
      

      Request:

      {"jsonrpc":"2.0","method":"action.exists","params":{"name":"Action2"},"id":0,"auth":"4fa77f1cd19429940ad7e8119b624739"}
      Response: 
      {    "jsonrpc":"2.0",
          "result":true,
          "id":0}
      

      EMPTY REQUEST:

      Request:

      {"jsonrpc":"2.0","method":"action.exists","params":{},"id":0,"auth":"4fa77f1cd19429940ad7e8119b624739"}
      Response: 
      {    "jsonrpc":"2.0",
          "result":true,
          "id":0}
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zalex_ua Oleksii Zagorskyi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: