We're updating the issue view to help you get more done. 

Failed to send health check email

Description

The Health Check tab in the Support Tools plugin accepts an additional email address to send to. When this is filled in, the health check fails to send because the comma separated list of recipients (plural) is deemed an invalid recipient (singular).

Log (addresses redacted):

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2013-12-04 14:54:14,386 INFO [localhost-startStop-1] stash.mail-log Starting mail service 2013-12-04 15:05:35,248 ERROR [MailServiceSender:thread-1] stash.mail-log Mail sending failed. Please verify the mail server configuration and check the logs for details; recipient: support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com; subject: Receipt for health check data sent on 2013-12-04... org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException: Illegal address in string ``support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com'' at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:108) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl$2.prepare(MailServiceImpl.java:346) ~[stash-service-impl-2.8.0-rc1.jar:na] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:352) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:206) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl.sendNow(MailServiceImpl.java:168) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl$1.run(MailServiceImpl.java:129) ~[stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:68) ~[stash-platform-2.8.0-rc1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_25] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) ~[na:1.7.0_25] at java.util.concurrent.FutureTask.run(FutureTask.java:166) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25] at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25] Caused by: javax.mail.internet.AddressException: Illegal address at org.springframework.mail.javamail.MimeMessageHelper.parseAddress(MimeMessageHelper.java:709) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.MimeMessageHelper.setTo(MimeMessageHelper.java:593) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:105) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] ... 13 common frames omitted 2013-12-04 17:45:18,259 ERROR [MailServiceSender:thread-1] stash.mail-log Mail sending failed. Please verify the mail server configuration and check the logs for details; recipient: support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com; subject: Receipt for health check data sent on 2013-12-04... org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException: Illegal address in string ``support-he[redacted]ck@atlassian.com,[redacted my address]@atlassian.com'' at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:108) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl$2.prepare(MailServiceImpl.java:346) ~[stash-service-impl-2.8.0-rc1.jar:na] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:352) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at com.atlassian.stash.internal.mail.MailServiceImpl.sendMessageSynchronously(MailServiceImpl.java:206) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl.sendNow(MailServiceImpl.java:168) [stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.mail.MailServiceImpl$1.run(MailServiceImpl.java:129) ~[stash-service-impl-2.8.0-rc1.jar:na] at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:68) ~[stash-platform-2.8.0-rc1.jar:na]

Environment

None

Testing Notes

None

Status

Assignee

AnshulA

Reporter

Roger Barnes

Labels

Add-on Type

None

Team

None

CC

None

Risk factor

None

QA Kickoff Status

None

QA Demo Status

None

Affected Product/s

None

Fix versions

Priority

Minor