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

It's possible to create maintenance with empty name via maintenance.create API method

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 4.0.30, 5.0.10, 5.2.6
    • None
    • Team D
    • 1

      Steps to reproduce:

      1. Send request to API with parameters containing empty maintenance name. Example:
      {
      "jsonrpc": "2.0",
      "method": "maintenance.create",
      "params": [
       {
              "name": "",
              "active_since": 1358844540,
              "active_till": 1390466940,
              "groupids": [
                  "2"
              ],
              "timeperiods": [
                  {
                      "timeperiod_type": 3,
                      "every": 1,
                      "dayofweek": 64,
                      "start_time": 64800,
                      "period": 3600
                  }
              ]
       }
      ],
      "auth": "<your auth>",
      "id": 1
      }

      Result:
      JSON response with ID of created maintenance shown.
      Maintenance added to database.
      Navigating in frontend to Configuration -> Maintenances, this record exists in the list without link to edit it via frontend.
      Expected:
      The error message like "Incorrect input parameters." is shown. Maintenance not added to database.

            zabbix.dev Zabbix Development Team
            vmaksimovs Vladimirs Maksimovs
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: