Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.6.2
-
None
-
4
-
Severity 3 - Minor
-
2
-
Description
Issue Summary
- When configuring the periodic log scan, the recipient e-mail field displays the following label:
- These email addresses will be sent a copy of your scan results. Separate multiple addresses with commas.
- When entering two e-mail addresses, separated by commas, e.g.
- user@atlassian.com,user2@atlassian.com
- the sending of the e-mail fails an exception is thrown in the logs.
Steps to Reproduce
- Go to cog icon > Administration
- Go to Troubleshooting and support tools from the left side panel
- Log Analyzer
- Periodic scan
- Try to provide more than one email address at a time as in the screenshot below:
Expected Results
- Email will get sent to each of the listed emails
Actual Results
There is no email delivery to any of the listed email addresses. The following is thrown in the Bitbucket logs:
2020-01-29 xx:xx:xx WARN [mail-sender:thread-1] c.a.s.i.mail.DefaultMailLogger 2 mail messages not sent due to errors (0 sent successfully): see mail log for details
And, the following is thrown in the atlassian-bitbucket-mail.log:
2020-01-29 09:01:00,665 ERROR [mail-sender:thread-1] bitbucket.mail-log Sending mail failed. The following addresses were rejected by the server: [admin@admin.com , test@test.com]. Please validate the email address of relevant users, verify mail server configuration and check the logs for details; recipient: admin@admin.com , test@test.com; subject: Log scan results for 2020-01-29... org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException: Illegal address in string ``admin@admin.com , test@test.com'' at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:111) at com.atlassian.stash.internal.mail.MailServiceImpl.lambda$newMimeMailMessagePreparator$2(MailServiceImpl.java:452) ... trimmed Caused by: javax.mail.internet.AddressException: Illegal address at org.springframework.mail.javamail.MimeMessageHelper.parseAddress(MimeMessageHelper.java:712) at org.springframework.mail.javamail.MimeMessageHelper.setTo(MimeMessageHelper.java:596) at org.springframework.mail.javamail.MimeMailMessage.setTo(MimeMailMessage.java:108) ... 11 common frames omitted
Notes
- This seems to be a regression for BSERV-11422.
Workaround
- As a workaround, one email address can be set and later that email address inbox can be configured with a rule to forward the same email to the remaining addresses.
Attachments
Issue Links
- is caused by
-
BSERV-11422 Invalid email addresses pause email delivery
- Closed