-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
4.0.30, 5.0.10, 5.2.6
-
None
-
1
Steps to reproduce:
- 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.