[Bug 68462] MailLogger fails when replyto, cc or bcc are empty
https://bz.apache.org/bugzilla/show_bug.cgi?id=68462 --- Comment #6 from Jaikiran Pai --- Thank you Kristján for testing this. I'm happy to hear it now works. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 68462] MailLogger fails when replyto, cc or bcc are empty
https://bz.apache.org/bugzilla/show_bug.cgi?id=68462 Kristján Bjarni Guðmundsson changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|--- |FIXED --- Comment #5 from Kristján Bjarni Guðmundsson --- Yes I tested build 214 and it results in success and sending the mail logger with no error, so I think we can consider this bug fixed. Thanks for your help. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 68462] MailLogger fails when replyto, cc or bcc are empty
https://bz.apache.org/bugzilla/show_bug.cgi?id=68462 --- Comment #4 from Jaikiran Pai --- I've pushed a change which might address this issue. Would you be able to test the 214 build (when it completes) from the nightly build https://ci-builds.apache.org/job/Ant/job/Ant_Nightly/ and see if that helps? -- You are receiving this mail because: You are the assignee for the bug.
[Bug 68462] MailLogger fails when replyto, cc or bcc are empty
https://bz.apache.org/bugzilla/show_bug.cgi?id=68462 --- Comment #3 from Jaikiran Pai --- Hello Kristján, I had a suspicion that it might have some issue with handling empty email addresses, but it wasn't easy to test for me. So thank you for testing this and reporting back. This will require some changes in the MailLogger. I will take a look shortly. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 68462] MailLogger fails when replyto, cc or bcc are empty
https://bz.apache.org/bugzilla/show_bug.cgi?id=68462 Kristján Bjarni Guðmundsson changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED|REOPENED --- Comment #2 from Kristján Bjarni Guðmundsson --- Hi Jaikiran I tested out build 204, but now get a different error message: BUILD SUCCESSFUL Total time: 0 seconds MailLogger failed to send e-mail! Problem while sending mime mail: at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:273) at org.apache.tools.ant.listener.MailLogger.sendMimeMail(MailLogger.java:422) at org.apache.tools.ant.listener.MailLogger.buildFinished(MailLogger.java:172) at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2111) at org.apache.tools.ant.Main.runBuild(Main.java:830) at org.apache.tools.ant.Main.startAnt(Main.java:223) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101) Caused by: javax.mail.internet.AddressException: Empty address in string ``'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1159) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:1099) at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:663) at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:734) at javax.mail.internet.MimeMessage.getRecipients(MimeMessage.java:565) at javax.mail.Message.getAllRecipients(Message.java:319) at javax.mail.internet.MimeMessage.getAllRecipients(MimeMessage.java:580) at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:247) ... 7 more -- You are receiving this mail because: You are the assignee for the bug.
[Bug 68462] MailLogger fails when replyto, cc or bcc are empty
https://bz.apache.org/bugzilla/show_bug.cgi?id=68462 Jaikiran Pai changed: What|Removed |Added Resolution|--- |FIXED Status|NEW |RESOLVED Target Milestone|--- |1.10.15 OS||All --- Comment #1 from Jaikiran Pai --- Hello Kristján, this indeed is an issue. I've pushed a change to the upstream Ant repo which should prevent the StringIndexOutOfBoundsException when an empty value gets passed to the EmailAddress. What I'm unsure is if this is enough to get the MailLogger to properly handle empty EmailAddress values and send out a mail (we don't have tests for that part). Would you be able to try out the Ant nightly build containing this change to verify that things work fine for you now? Our nightly builds for testing are available here https://ci-builds.apache.org/job/Ant/job/Ant_Nightly/lastCompletedBuild/artifact/. Please wait for the current build 203 to complete which has the fix. -- You are receiving this mail because: You are the assignee for the bug.