Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12170

Scheduled log scan e-mail cannot be sent to multiple recipients

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 6.6.2
    • Notifications
    • None

    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

      1. Go to cog icon > Administration
      2. Go to Troubleshooting and support tools from the left side panel
      3. Log Analyzer
      4. Periodic scan
      5. 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

      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

          Activity

            People

              Unassigned Unassigned
              fabbes Fares Abbes (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Backbone Issue Sync