Editing a comment added by a deleted user generates a bad notification email

XMLWordPrintable

    • 3.12

      After editing a comment JIRA sends a notification email message. If the comment was added by a user who exists then the message is as expected. If the comment was added by a user whose account has since been deleted then the message contains the following:

      An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- 
      org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUser' in class com.atlassian.core.user.UserUtils threw exception 
      class com.opensymphony.user.EntityNotFoundException : No user fred.bloggs@xxxxxxxxxxx.co.uk found at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
       at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:144) 
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) 
       at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) 
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) 
       at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) 
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) 
       at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:172) 
       at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) 
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) 
       at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:316) 
       at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:210) 
       at com.atlassian.velocity.DefaultVelocityManager.getEncodedBodyForContent(DefaultVelocityManager.java:142) 
       at com.atlassian.jira.mail.MailingListCompiler$1.processRecipient(MailingListCompiler.java:285) 
       at com.atlassian.jira.mail.NotificationRecipientProcessor.process(NotificationRecipientProcessor.java:41) 
       at com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:307)
      at com.atlassian.jira.mail.MailingListCompiler.access$500(MailingListCompiler.java:35) 
       at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.addEmailsToQueue(MailingListCompiler.java:472) 
       at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendLists(MailingListCompiler.java:440) 
       at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendForEvent(MailingListCompiler.java:393) 
       at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:133) 
       at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:167) 
       at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68) 
       at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) 
       at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) 
       at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61) 
       at org.quartz.core.JobRunShell.run(JobRunShell.java:191) 
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 
      

              Assignee:
              Toby Rahilly [Atlassian]
              Reporter:
              John Ball
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h
                  5h