Werk #16366: rule: Fix crash on rule creation via REST API without conditions or properties

Component REST API
Title rule: Fix crash on rule creation via REST API without conditions or properties
Date Feb 9, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p22 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Before this Werk, an status code 500 Internal Server Error was returned when creating a rule without conditions or properties. This Werk fixes it and now it is possible to create a rule in such conditions.

To the list of all Werks