Werk #19757 · Apr 24, 26
Test notifications: Fix crash when showing rules unknown to target site
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).
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Notifications
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p1All Editions
- 2.4.0p29All Editions