Werk #23142: REST API: reject rule values of the wrong type instead of crashing
| Component | REST API | ||||||
| Title | REST API: reject rule values of the wrong type instead of crashing | ||||||
| Date | Nov 17, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
Creating or updating a rule via the REST API crashed with
AttributeError: 'list' object has no attribute 'split' when the rule
value had a different type than the rule set expects, for example a list
for Notified events for hosts, which expects a string such as "d,r".
The REST API now rejects such a value with a 400 error that names the problem.
This completes werk #23097, which already handled other value shapes the rule set cannot read.