Werk #16403: Fix assert self._rulespec.item_name is not None

Component Setup
Title Fix assert self._rulespec.item_name is not None
Date Feb 13, 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.0p23 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p40 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

A rulespec may have an item_spec without a title. In Werk #13387 changed it so that if this title is missing the the following crash occurs.

assert self._rulespec.item_name is not None

The occured if one navigates to the parameters via Parameters for this service and clicks Parameters. It is now fixed.

To the list of all Werks