Uploaded image for project: 'JIRA Server (including JIRA Core)'
  1. JIRA Server (including JIRA Core)
  2. JRASERVER-12343

Mail is not correctly finding a user that exists - then User creation fails with DuplicateEntityException

    XMLWordPrintable

    Details

      Description

      On support.atlassian.com we are seeing the following during processing of our mail queue.

      2007-03-08 18:57:12,332 JiraQuartzScheduler_Worker-2 ERROR [service.util.handler.AbstractMessageHandler] Error occurred while automatically creating a new user from email: 
      com.opensymphony.user.DuplicateEntityException: The user jira@example.com already exists.
              at com.atlassian.core.user.UserUtils.createUser(UserUtils.java:181)
              at com.atlassian.core.user.UserUtils.createUser(UserUtils.java:171)
              at com.atlassian.jira.util.JiraUserUtils.createJiraUser(JiraUserUtils.java:74)
              at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createUserForReporter(AbstractMessageHandler.java:542)
              at com.atlassian.jira.service.util.handler.AbstractMessageHandler.getReporter(AbstractMessageHandler.java:485)
              at com.atlassian.jira.toolkit.service.handler.CreateSupportIssueHandler.handleMessage(CreateSupportIssueHandler.java:101)
              at com.atlassian.jira.toolkit.service.handler.CreateSupportIssueHandler.handleMessage(CreateSupportIssueHandler.java:80)
              at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:190)
              at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67)
              at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      2007-03-08 18:57:12,332 JiraQuartzScheduler_Worker-2 WARN [toolkit.service.handler.CreateSupportIssueHandler] Sender is anonymous, no default reporter specified and creating users is set to false. Message rejected.
      

      this is then closely followed by:

      2007-03-08 18:57:15,589 JiraQuartzScheduler_Worker-2 ERROR [service.services.mail.MailFetcherService] Throwable: com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 552 Error: message too large
      
      com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 552 Error: message too large
      
              at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:183)
              at com.atlassian.jira.service.services.mail.MailFetcherService.sendMail(MailFetcherService.java:353)
              at com.atlassian.jira.service.services.mail.MailFetcherService.forwardEmail(MailFetcherService.java:319)
              at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:194)
              at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67)
              at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      Caused by: com.sun.mail.smtp.SMTPSendFailedException: 552 Error: message too large
      
              at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1275)
              at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1149)
              at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:527)
              at javax.mail.Transport.send0(Transport.java:151)
              at javax.mail.Transport.send(Transport.java:80)
              at alt.javax.mail.TransportImpl.send(TransportImpl.java:18)
              at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:169)
              ... 7 more
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jed Jed Wesley-Smith (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: