Werk #17334: Catch invalid "Explicit hosts" condition on save instead of crashing

Component Setup
Title Catch invalid "Explicit hosts" condition on save instead of crashing
Date Oct 28, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p20 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

When invalid host names were passed into the "Explicit hosts" condition while creating or editing a rule, Checkmk would crash with the message `Internal error: Invalid hostaddress: '{explicit hosts condition}'.

With this werk, the form will warn you that you have entered an invalid Explicit hosts condition. This allows you to fix the error without losing the rest of the entered inputs.

To the list of all Werks