-
Incident report
-
Resolution: Unresolved
-
Trivial
-
None
-
None
Currently, if you try to delete a maintenance that has already been deleted, the API will respond with an error saying that you do not have access to the operation. It would make more sense if the error message stated that you tried to delete an nonexistent maintenance instead.
Example output from a delete attempt on an already removed maintenance id:
{ "code": -32500, "message": "Application error.", "data": "You do not have permission to perform this operation." }Looking in frontends/php/api/classes/CMaintenance.php it seems this would be a very trivial fix, looking at lines 619-623 in current SVN version:
foreach ($maintenanceids as $maintenanceid) {
if (!isset($maintenances[$maintenanceid]))
}
- duplicates
-
ZBX-3783 Proper API validation
- Reopened