-
Problem report
-
Resolution: Unresolved
-
Trivial
-
7.0.20rc1, 7.4.4rc1, 8.0.0alpha1 (master)
-
Sprint candidates
According to the documentation maintenanceid, maintenance_from, maintenance_status and maintenance_type are read-only parameters.
Precondition:
- Create host group and maintenance
Steps to reproduce:
- Try to create new or update existing host with maintenance parameters e.g.
Create => { "jsonrpc": "2.0", "method": "host.create", "params":{ "host": "host_with_maintenance_test", "maintenanceid": "{maintenanceid}", "maintenance_type": 0, "maintenance_status": 1, "maintenance_from": 1760094034, "groups": [ { "groupid": "{groupid}" } ] }, "id": 1 } Update => { "jsonrpc": "2.0", "method": "host.update", "params":{ "hostid": "{host_id}", "maintenanceid": "{maintenanceid}", "maintenance_type": 0, "maintenance_status": 1, "maintenance_from": 1760094034 }, "id": 1 }
Result: Host is created with maintenance state.
Expected: read-only parameters should be ignored or validated.
- related to
-
ZBX-27089 Page not found when exporting template with stacked graphs
-
- READY TO DEVELOP
-