Werk #19757: Test notifications: Fix crash when showing rules unknown to target site
| Component | Notifications | ||||||
| Title | Test notifications: Fix crash when showing rules unknown to target site | ||||||
| Date | Apr 24, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
When testing notifications for a host on a remote site with the option
"Show user rules" enabled, the page crashed with an IndexError whenever
the central site had more notification rules than the target site.
This happened in particular after creating or cloning a rule in the personal notification rules: such changes rely on the user profile replication and do not produce a pending "Activate Changes" entry, so until the profile replication has run, the target site does not yet know about the new rule.
The rule analysis returned by the target site is now rendered defensively: rules unknown to the target site are marked with a warning icon, and a warning message is shown above the rule list explaining that the target site is not yet in sync and that changes need to be activated (or the user profile replication completed for personal rules).