com.atlassian.mail.MailException: javax.mail.internet.AddressException: Missing '"' in string ``"TESTING'' at position 8

Atlassian JIRA | Andre Quadros Petry | 6 months ago
  1. 0

    h3. Summary JIRA is not sending the _Mention_ notification when an user is mentioned in a comment if the Project's Notification Email has quotes. h3. Steps to Reproduce # Configure an Outgoing Mail in JIRA # Create a new project; # Edit the Project's Notification Email to have quotes on it: !notifications.png|thumbnail! # Create a ticket in this new project; # Add a comment mentioning an user, to trigger the "_user_ mentioned you" notification. h3. Expected Results Receive the notification related to the mention. h3. Actual Results The user is not receiving the notification related to the mention. The below exception is thrown in the atlassian-jira-outgoing.log file: {noformat} 2016-06-22 15:48:00,050 Sending mailitem To='demouser2@atlassian.com' Subject='Pedro Cora mentioned you on PX-1 (JIRA) ' From='"TESTING QUOTES" <atlassianjira@atlassian.com>' FromName='Pedro Cora JIRA' Cc='null' Bcc='null' ReplyTo='"TESTING QUOTES" <atlassianjira@atlassian.com>' InReplyTo='null' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@2773aa1' MessageId='null' ERROR anonymous Mail Queue Service [c.a.mail.queue.MailQueueImpl] Error occurred in sending e-mail: To='demouser2@atlassian.com' Subject='Pedro Cora mentioned you on PX-1 (JIRA) ' From='"TESTING QUOTES" <atlassianjira@atlassian.com>' FromName='Pedro Cora JIRA' Cc='null' Bcc='null' ReplyTo='"TESTING QUOTES" <atlassianjira@atlassian.com>' InReplyTo='null' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@27f1553f' MessageId='null' com.atlassian.mail.MailException: javax.mail.internet.AddressException: Missing '"' in string ``"TESTING'' at position 8 at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:214) at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:44) at com.atlassian.jira.mail.builder.RenderingMailQueueItem.send(RenderingMailQueueItem.java:33) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66) at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:51) at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:48) at com.atlassian.jira.util.velocity.DefaultVelocityRequestContextFactory.runWithStaticBaseUrl(DefaultVelocityRequestContextFactory.java:110) at com.atlassian.jira.util.DefaultBaseUrl.runWithStaticBaseUrl(DefaultBaseUrl.java:50) at com.atlassian.jira.mail.JiraMailQueue.sendBuffer(JiraMailQueue.java:48) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:21) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:62) at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44) at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:401) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:369) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:347) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:255) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:252) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34) at java.lang.Thread.run(Thread.java:745) Caused by: javax.mail.internet.AddressException: Missing '"' in string ``"TESTING'' at position 8 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:867) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:638) at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111) at com.atlassian.mail.MailUtils.parseAddresses(MailUtils.java:129) at com.atlassian.mail.server.impl.util.MessageCreator.updateMimeMessage(MessageCreator.java:53) {noformat} h3. Notes If you add the quotes to the Outgoing Mail configuration and remove the email from the project's notification email (to use the default), the problem is not reproducible. It only occurs if you save an email with quotes directly in the project. h3.Workaround Edit the Project's Notification email to something without quotes.

    Atlassian JIRA | 6 months ago | Andre Quadros Petry
    com.atlassian.mail.MailException: javax.mail.internet.AddressException: Missing '"' in string ``"TESTING'' at position 8
  2. 0

    No notification is sent after game when one player doesn't have a email address set

    GitHub | 2 years ago | squix78
    javax.mail.internet.AddressException: Null address (,0)
  3. 0

    #761과 비슷한 에러가 납니다

    GitHub | 2 years ago | seyriz
    org.apache.commons.mail.EmailException: javax.mail.internet.AddressException: Domain contains illegal character in string ``logger@dom.co.kr@dom.co.kr''
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    이메일 발송자 아이디 표시 문제 및 도메인 설정 질문 입니다.

    GitHub | 2 years ago | pokev25
    java.lang.RuntimeException: org.apache.commons.mail.EmailException: javax.mail.internet.AddressException: Domain contains illegal character in string ``devmaster@variel.kr@variel.kr''
  6. 0

    Hudson email ext plugin bug?

    Stack Overflow | 7 years ago
    javax.mail.internet.AddressException: Illegal address in string ``''

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.mail.internet.AddressException

      Missing '"' in string ``"TESTING'' at position 8

      at javax.mail.internet.InternetAddress.parse()
    2. JavaMail API
      InternetAddress.<init>
      1. javax.mail.internet.InternetAddress.parse(InternetAddress.java:867)
      2. javax.mail.internet.InternetAddress.parse(InternetAddress.java:638)
      3. javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111)
      3 frames
    3. com.atlassian.mail
      MessageCreator.updateMimeMessage
      1. com.atlassian.mail.MailUtils.parseAddresses(MailUtils.java:129)
      2. com.atlassian.mail.server.impl.util.MessageCreator.updateMimeMessage(MessageCreator.java:53)
      2 frames