Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-4526

Notifications stick in the queue if associated project is deleted.

    XMLWordPrintable

Details

    Description

      If a project is deleted while a notification from that project is still in the queue, these items 'stick' in the queue, generating errors.

      Steps to Reproduce:

      1. Created a project
      2. Created some issues that caused events to go into the mailqueue
      3. Before those could be sent we deleted the project
      4. Then the mail queue tried to send the mail and failed because the project was coming back as null for the issue in the mailqueue
      2004-09-10 15:52:24,419 ERROR [atlassian.jira.mail.IssueMailQueueItem] Source GenericValue can not be null.
      java.lang.IllegalArgumentException: Source GenericValue can not be null.
      	at com.atlassian.core.ofbiz.association.DefaultAssociationManager.getSinkFromSource(DefaultAssociationManager.java:201)
      	at com.atlassian.core.ofbiz.association.DefaultAssociationManager.getSinkFromSource(DefaultAssociationManager.java:195)
      	at com.atlassian.jira.scheme.AbstractSchemeManager.cacheProjectSchemes(AbstractSchemeManager.java:408)
      	at com.atlassian.jira.scheme.AbstractSchemeManager.getSchemes(AbstractSchemeManager.java:96)
      	at com.atlassian.jira.notification.DefaultNotificationSchemeManager.getRecipients(DefaultNotificationSchemeManager.java:75)
      	at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:103)
      	at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:55)
      	at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23)
      	at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:53)
      	at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:147)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:387)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              7ee5c68a815f Jeff Turner
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: