[dev.icinga.com #13421] API max_check_attempts validation #4832
Labels
area/api
REST API
area/configuration
DSL, parser, compiler, error handling
bug
Something isn't working
Milestone
This issue has been migrated from Redmine: https://dev.icinga.com/issues/13421
Created by andyb2000 on 2016-12-06 10:39:03 +00:00
Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-12-06 10:39:03 +00:00 (in Redmine)
I believe this could do with input validation when creating a service via the API.
Creating it using the command:
Is accepted by the API and doesn't cause any issues on icingaweb2, etc, however for any classic interfaces (those that use /var/cache/icinga2/objects.cache) the value of 0 for max_check_attempts appears invalid and causes them to fail to load.
Changing this posted value to 1 solves this issue, however I believe the service shouldn't be created/should be rejected with an invalid value error.
See discussion at: https://monitoring-portal.org/index.php?thread/39184-dynamic-service-creation-api-and-classicui-json-errors/
Thank you
The text was updated successfully, but these errors were encountered: