The new alert notification plugins need to make sure they handle the case where items they depend on have been removed from the inventory, e.g. the user email plugin should handle a user being deleted from JON, the operations plugin should handle a resource referenced by it being removed from the inventory.
Handling here means not blowing up during the execution of an alert notification and not spamming the server log file every time an alert fires.
The idea here is to work as well as JON2.3 when it came to handling the above situations.
Author: Joseph Marques <email@example.com>
Date: Wed Jun 23 17:42:57 2010 -0400
BZ-586131: upon subject/role deletion, graceful removal of data from affected AlertNotification
results of this change are as follows:
* when users are removed from RHQ, they are removed from all alert notifications they were attached to (already fired alerts / audit trail is not affected)
* when roles are removed from RHQ, they are removed from all alert notifications they were attached to (already fired alerts / audit trail is not affected)
I tested this on Build#42 jon-server-2.4.0.GA_QA.
The user condition fail. Meaning, the alert notification still have the deleted user entry and report successfully sent the e-mail.
I can see that the role is being gracefully reomoved from the alert notification.
Moving this back to ON_DEV.
Sudhir, please retry this. Delete your "System Users" alert notification, and then add it back. Theh try removing one or more of the users. I suspect the reason this failed is because I recently had to change the storage mechanism for the configuration data associated with an alert notification for this bug.
I re tested this on the new build, jon-server-2.4.0.GA_QA build# 43 and the user was removed gracefully from the alert notificaton when deleted.
Marking this bug as verified.
Mass-closure of verified bugs against JON.