Werk #16633: Logfile pattern analyzer: Fix crash for first rule without regex pattern

Component User interface
Title Logfile pattern analyzer: Fix crash for first rule without regex pattern
Date Apr 17, 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.0b6 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p26 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The "Logfile pattern analyzer" page crashed when the first "Logfile pattern" rule in place did not hold a regex pattern and a later rule did hold a regex pattern. The rendering of the table of rules would crash with

Internal error: list index out of range

This is fixed and all rules are rendered as expected.

To the list of all Werks