Details

  • Type: Bug Bug
  • Status: Verified Verified
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0.1
  • Component/s: mail
  • Labels:
    None
  • Environment:
    Platform: Sun, OS: All

Description

I have configured Hudson to send eMail at the end of a broken build. At first
the hole dev-group get an eMail which Alias eMail address is entered by me in
the correspond field. At second the developer who has checked in at last get an
separate eMail. Now comes that one developer has inserted an invalid eMail
address containing spaces into Bugzilla. As a result no one gets an eMail due to
the fact that Hudson runs into an javax.mail.internet.AddressException:

Archiving artifacts
Recording test results
ERROR: Illegal whitespace in address
javax.mail.internet.AddressException: Illegal whitespace in address in string
``Berend Corneliussun.com''
at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:926)
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:819)
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:555)
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:91)
at hudson.tasks.MailSender.buildCulpritList(MailSender.java:348)
at hudson.tasks.MailSender.createEmptyMail(MailSender.java:325)
at hudson.tasks.MailSender.createFailureMail(MailSender.java:198)
at hudson.tasks.MailSender.getMail(MailSender.java:133)
at hudson.tasks.MailSender.execute(MailSender.java:81)
at hudson.tasks.Mailer.perform(Mailer.java:99)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:516)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:502)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:490)
at hudson.model.Build$RunnerImpl.post2(Build.java:181)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:474)
at hudson.model.Run.run(Run.java:1197)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:123)
Finished: FAILURE

Activity

Hide
mindless added a comment -

started

Show
mindless added a comment - started
Hide
scm_issue_link added a comment -

Code changed in hudson
User: : mindless
Path:
trunk/hudson/main/core/src/main/java/hudson/tasks/MailSender.java
trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=24091
Log:
[FIXED HUDSON-4927] Send build status email to valid addresses rather than aborting
for one invalid address

Show
scm_issue_link added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/tasks/MailSender.java trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=24091 Log: [FIXED HUDSON-4927] Send build status email to valid addresses rather than aborting for one invalid address
Hide
nevil added a comment -

Issue still reproducible on hudson 2.0.0 in case of invalid email.
For ex. error#domain.com at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:220)
at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:205)
at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:166)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:631)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:610)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:588)
at hudson.model.Build$RunnerImpl.cleanUp(Build.java:165)
at hudson.model.Run.run(Run.java:1406)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)

Show
nevil added a comment - Issue still reproducible on hudson 2.0.0 in case of invalid email. For ex. error#domain.com at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) at javax.mail.Transport.send0(Transport.java:169) at javax.mail.Transport.send(Transport.java:98) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:220) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:205) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:166) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:631) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:610) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:588) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:165) at hudson.model.Run.run(Run.java:1406) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)
Hide
gwaymark added a comment -

Could not reproduce before or after the fix.

Show
gwaymark added a comment - Could not reproduce before or after the fix.

People

  • Assignee:
    Unassigned
    Reporter:
    track
Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: