Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-3611

javax.mail.internet.AddressException on valid email - Lotus notes distribution list.

      CSP-1214.

      So we know that this prevents the email from being indexed. Im sure that it has other ramifications as well.

      We need to provide some form of fallback mechanism for when an email is not 'valid', particularly considering that we received the email from a mail server.

            [CONFSERVER-3611] javax.mail.internet.AddressException on valid email - Lotus notes distribution list.

            I've updated Confluence so that it now reads the invalid email address as plain text without parsing. This will allow indexing to proceed.

            Brian Nguyen (Inactive) added a comment - I've updated Confluence so that it now reads the invalid email address as plain text without parsing. This will allow indexing to proceed.

            We will be upgrading to JavaMail 1.4.1 for Confluence 2.9; what leads you to believe this will resolve these exceptions?

            Andrew Lynch (Inactive) added a comment - We will be upgrading to JavaMail 1.4.1 for Confluence 2.9; what leads you to believe this will resolve these exceptions?

            Instead of ignoring the exception, have you tried JavaMail 1.4? http://java.sun.com/products/javamail/index.jsp

            Anthony Whitford added a comment - Instead of ignoring the exception, have you tried JavaMail 1.4? http://java.sun.com/products/javamail/index.jsp

            Bob Swift added a comment -

            And all you need to do is ignore the exception on the bad recipients and continue processing...

            javax.mail.internet.AddressException: Illegal whitespace in address in string ``i5 R&D Build''
            at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java(Compiled Code))
            at javax.mail.internet.InternetAddress.parse(InternetAddress.java(Compiled Code))
            at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:547)
            at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:657)
            at javax.mail.internet.MimeMessage.getRecipients(MimeMessage.java:482)
            at javax.mail.Message.getAllRecipients(Message.java:268)
            at javax.mail.internet.MimeMessage.getAllRecipients(MimeMessage.java:497)
            at com.atlassian.confluence.mail.Mail.getRecipients(Mail.java:356)
            at com.atlassian.confluence.mail.Mail.getRecipientsForSearch(Mail.java:332)

            Bob Swift added a comment - And all you need to do is ignore the exception on the bad recipients and continue processing... javax.mail.internet.AddressException: Illegal whitespace in address in string ``i5 R&D Build'' at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java(Compiled Code)) at javax.mail.internet.InternetAddress.parse(InternetAddress.java(Compiled Code)) at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:547) at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:657) at javax.mail.internet.MimeMessage.getRecipients(MimeMessage.java:482) at javax.mail.Message.getAllRecipients(Message.java:268) at javax.mail.internet.MimeMessage.getAllRecipients(MimeMessage.java:497) at com.atlassian.confluence.mail.Mail.getRecipients(Mail.java:356) at com.atlassian.confluence.mail.Mail.getRecipientsForSearch(Mail.java:332)

            Bob Swift added a comment -

            Any updates on this. Every day I get a number of exceptions in the log on this. Not to mention the indexing problem.

            Bob Swift added a comment - Any updates on this. Every day I get a number of exceptions in the log on this. Not to mention the indexing problem.

              bnguyen Brian Nguyen (Inactive)
              8873c89cc788 Daniel Ostermeier
              Affected customers:
              1 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: