• 1.14

      After installed Mailer plugin version 1.13. I can not sending email to individuals who broke the build.

      See error:
      ERROR: Unable to send to address: michal_jenicek@xx.cz,lubos_strapko@xx.cz
      javax.mail.internet.AddressException: Illegal address in string ``michal_jenicek@xx.cz,lubos_strapko@xx.cz''
      at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114)

      Problem is probably that there is inserted a comma instead of a space.

      After downgrading the old version 1.12 it works.

      Thank you for your the fix
      Petr Rocen

          [JENKINS-26606] Unable send email

          Horst Krause added a comment -

          The same for me. As long as there is only one committer who broke the build, it still works. But for two or more committers I get the same error.

          Horst Krause added a comment - The same for me. As long as there is only one committer who broke the build, it still works. But for two or more committers I get the same error.

          qa Xperthis added a comment -

          Exactly the same issue for us.

          qa Xperthis added a comment - Exactly the same issue for us.

          Daniel Beck added a comment -

          Assigning to tfennelly as he seems to have broken it:
          https://github.com/jenkinsci/mailer-plugin/compare/mailer-1.12...mailer-1.13

          Possibly due to missing space after comma.

          Daniel Beck added a comment - Assigning to tfennelly as he seems to have broken it: https://github.com/jenkinsci/mailer-plugin/compare/mailer-1.12...mailer-1.13 Possibly due to missing space after comma.

          Tom FENNELLY added a comment -

          oops sorry ... I thought there were some basic unit tests in there testing this. Will fix it ASAP.

          Tom FENNELLY added a comment - oops sorry ... I thought there were some basic unit tests in there testing this. Will fix it ASAP.

          Tom FENNELLY added a comment -

          @Horst can you provide the full stacktrace please?

          Tom FENNELLY added a comment - @Horst can you provide the full stacktrace please?

          Tom FENNELLY added a comment -

          Tom FENNELLY added a comment - Guys, could you please try this fix and let me know if it work: http://maven.jenkins-ci.org:8081/content/repositories/snapshots/org/jenkins-ci/plugins/mailer/1.14-SNAPSHOT/mailer-1.14-20150129.154638-1.hpi

          Horst Krause added a comment -

          The linked file is not available.
          Links should be: http://maven.jenkins-ci.org/content/repositories/snapshots/org/jenkins-ci/plugins/mailer/1.14-SNAPSHOT/mailer-1.14-20150129.154638-1.hpi

          Stacktrace:
          ERROR: Unable to send to address: user1@mycompany.tld,user2@mycompany.tld,user3@mycompany.tld
          javax.mail.internet.AddressException: Illegal address in string ``user1@mycompany.tld,user2@mycompany.tld,user3@mycompany.tld''
          at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114)
          at hudson.tasks.Mailer.StringToAddress(Mailer.java:180)
          at jenkins.plugins.mailer.tasks.MimeMessageBuilder.toNormalizedAddress(MimeMessageBuilder.java:254)
          at jenkins.plugins.mailer.tasks.MimeMessageBuilder.addRecipients(MimeMessageBuilder.java:137)
          at jenkins.plugins.mailer.tasks.MimeMessageBuilder.addRecipients(MimeMessageBuilder.java:129)
          at hudson.tasks.MailSender.createEmptyMail(MailSender.java:380)
          at hudson.tasks.MailSender.createFailureMail(MailSender.java:260)
          at hudson.tasks.MailSender.createMail(MailSender.java:178)
          at hudson.tasks.MailSender.run(MailSender.java:107)
          at hudson.tasks.MailSender.execute(MailSender.java:101)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1064)
          at hudson.model.Run.execute(Run.java:1791)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
          at hudson.model.ResourceController.execute(ResourceController.java:89)
          at hudson.model.Executor.run(Executor.java:240)

          Horst Krause added a comment - The linked file is not available. Links should be: http://maven.jenkins-ci.org/content/repositories/snapshots/org/jenkins-ci/plugins/mailer/1.14-SNAPSHOT/mailer-1.14-20150129.154638-1.hpi Stacktrace: ERROR: Unable to send to address: user1@mycompany.tld,user2@mycompany.tld,user3@mycompany.tld javax.mail.internet.AddressException: Illegal address in string ``user1@mycompany.tld,user2@mycompany.tld,user3@mycompany.tld'' at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114) at hudson.tasks.Mailer.StringToAddress(Mailer.java:180) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.toNormalizedAddress(MimeMessageBuilder.java:254) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.addRecipients(MimeMessageBuilder.java:137) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.addRecipients(MimeMessageBuilder.java:129) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:380) at hudson.tasks.MailSender.createFailureMail(MailSender.java:260) at hudson.tasks.MailSender.createMail(MailSender.java:178) at hudson.tasks.MailSender.run(MailSender.java:107) at hudson.tasks.MailSender.execute(MailSender.java:101) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1064) at hudson.model.Run.execute(Run.java:1791) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

          Horst Krause added a comment -

          The fix seems to work. No more exception for me.

          Horst Krause added a comment - The fix seems to work. No more exception for me.

          Tom FENNELLY added a comment -

          PR https://github.com/jenkinsci/mailer-plugin/pull/17

          Will cut a 1.4 release as soon as that goes upstream.

          Tom FENNELLY added a comment - PR https://github.com/jenkinsci/mailer-plugin/pull/17 Will cut a 1.4 release as soon as that goes upstream.

          Tom FENNELLY added a comment -

          A 1.4 with this fix should be available now (released yesterday).

          Tom FENNELLY added a comment - A 1.4 with this fix should be available now (released yesterday).

            tfennelly Tom FENNELLY
            procen Petr Rocen
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: