Description of problem: Alert notification of type Direct email, fail for multiple e-mail addresses with Illegal address error. Version-Release number of selected component (if applicable): jon-server-2.4.0.GA_QA Build# 42. How reproducible: Always Steps to Reproduce: 1. Create an alert definition. 2. Edit the alert notification and click Add New button. 3. Select Direct Emails and provide the e-mail addresses comma seperated. Actual results: Sending of e-mails fail with illegal address error. Below is the log-snippet for alert @DEBUG level, 2010-06-25 12:06:21,057 DEBUG [org.rhq.enterprise.server.alert.engine.model.MeasurementNumericCacheElement] comparing 0.001160525552285821 against MeasurementNumericCacheElement[ alertConditionTriggerId=10114, alertConditionOperator=CHANGES, alertConditionValue=0.0016927387345318703 ] match 2010-06-25 12:06:21,060 DEBUG [org.rhq.enterprise.server.alert.engine.model.MeasurementNumericCacheElement] element updated: MeasurementNumericCacheElement[ alertConditionTriggerId=10114, alertConditionOperator=CHANGES, alertConditionValue=0.001160525552285821 ] 2010-06-25 12:06:21,120 DEBUG [org.rhq.enterprise.server.alert.engine.internal.AlertConditionCacheCoordinator] Check Measurements[size=16] - AlertConditionCacheStats[ created=0, updated=0, deleted=0, matched=1, age=63ms ] 2010-06-25 12:06:21,122 DEBUG [org.rhq.enterprise.server.alert.engine.jms.AlertConditionConsumerBean] Received message: ActiveAlertConditionMessage[ value= 0.001160525552285821, AbstractAlertConditionMessage[ alertConditionId=10114, timestamp=1277447764153 ] ] 2010-06-25 12:06:21,129 DEBUG [org.rhq.enterprise.server.alert.AlertConditionLogManagerBean] Inserting unmatched alert condition log: org.rhq.core.domain.alert.AlertConditionLog[ id=0, value=0.001160525552285821, org.rhq.core.domain.alert.AlertCondition[ id=10114, category=Measurement Value Change, name=System Load, comparator='null', threshold=null, option=null ] ] 2010-06-25 12:06:21,134 DEBUG [org.rhq.enterprise.server.alert.AlertConditionLogManagerBean] Need only 1 of 1 conditions to be true, found 1 for AlertDefinition[id=10011] 2010-06-25 12:06:21,134 DEBUG [org.rhq.enterprise.server.alert.AlertConditionLogManagerBean] Alert definition with conditionId=10114 evaluated to true 2010-06-25 12:06:21,135 DEBUG [org.rhq.enterprise.server.alert.AlertConditionLogManagerBean] Latest event was null, next AlertDampeningEvent.Type is POSITIVE 2010-06-25 12:06:21,135 DEBUG [org.rhq.enterprise.server.alert.AlertConditionLogManagerBean] Need to process AlertDampeningEvent.Type of POSITIVE for AlertDefinition[ id=10011 ] 2010-06-25 12:06:21,157 DEBUG [org.rhq.enterprise.server.alert.AlertDampeningManagerBean] Alert condition processing for org.rhq.core.domain.alert.AlertDefinition[ id=10011, name=System Load Variation, conditionExpression=ANY, priority=!! - Medium, resourceId=10001 ] 2010-06-25 12:06:21,157 DEBUG [org.rhq.enterprise.server.alert.AlertDampeningManagerBean] Dampening rules are: org.rhq.core.domain.alert.AlertDampening[ category=NONE[] ] 2010-06-25 12:06:21,159 DEBUG [org.rhq.enterprise.server.alert.AlertDampeningManagerBean] Need 1 events for the last 1 events, found 1 2010-06-25 12:06:21,160 DEBUG [org.rhq.enterprise.server.alert.AlertDampeningManagerBean] Dampening rules were satisfied 2010-06-25 12:06:21,161 DEBUG [org.rhq.enterprise.server.alert.AlertManagerBean] Firing an alert for alertDefinition with id=10011... 2010-06-25 12:06:21,165 DEBUG [org.rhq.enterprise.server.alert.AlertManagerBean] New alert identifier=10072 2010-06-25 12:06:21,167 DEBUG [org.rhq.enterprise.server.alert.AlertManagerBean] Matched alert condition log for alertId=10072: org.rhq.core.domain.alert.AlertConditionLog[ id=10091, value=0.001160525552285821, org.rhq.core.domain.alert.AlertCondition[ id=10114, category=Measurement Value Change, name=System Load, comparator='null', threshold=null, option=null ] ] 2010-06-25 12:06:21,167 DEBUG [org.rhq.enterprise.server.alert.AlertManagerBean] Sending alert notifications for Alert[id=10072]... 2010-06-25 12:06:21,171 DEBUG [org.rhq.enterprise.server.alert.AlertManagerBean] SenderResult{message='Sending to addresses: [sdharane,rhquser1,rhquser2]', state=DEFERRED_EMAIL, emails=[sdharane,rhquser1,rhquser2]} 2010-06-25 12:06:21,171 DEBUG [org.rhq.enterprise.server.alert.AlertManagerBean] Sending alert notifications for Alert[id=10072]... 2010-06-25 12:06:21,174 ERROR [org.rhq.enterprise.server.core.EmailManagerBean] Failed to send email [ [ALERT] priority of [!! - Medium] for alert [System Load Variation] on resource [dhcp6-150.pnq.redhat.com-embedded]] to recipient [sdharane,rhquser1,rhquser2]: Illegal address 2010-06-25 12:06:21,174 ERROR [org.rhq.enterprise.server.core.EmailManagerBean] Sending of emails failed for this reason: Illegal address 2010-06-25 12:06:21,174 DEBUG [org.rhq.enterprise.server.alert.AlertManagerBean] Sending email notifications for [sdharane,rhquser1,rhquser2] failed Expected results: Emails should be sent to respective mail IDs. Additional info:
Just missed to mention that, for a single e-mail ID, alerts are sent across to that mail ID correctly.
Sudhir, please delete and recreate this alert notification. I made some changes recently to how the configuration data for an alert notification is persisted, so it literally thinks that "sdharane,rhquser1,rhquser2" is one big email address. The change was necessary to implement BZ-586131 efficiently.
I re-tested this with new build, jon-server-2.4.0.GA_QA Build# 43. No luck. I'm still hitting the same error. Moving this back to ON_DEV
commit db911f971bb286fe600c4257b85f917bb3227004 Author: Joseph Marques <joseph> Date: Tue Jun 29 15:33:19 2010 -0400 BZ-607898: fix for sending alert notifications with multiple direct email addresses
Tested this on jon-server-2.4.0.GA_QA.zip Build# 44. I'm able to send e-mail address to multiple e-mail addresses. Marking this bug Verified.
Mass-closure of verified bugs against JON.