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

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Critical
    • None
    • Affects Version/s: 1.8.14rc1, 2.1.0
    • Component/s: API (A)

      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}
      

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

              Created:
              Updated:
              Resolved: