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

HTML cause JIRA to throw exception & not delete email

    XMLWordPrintable

Details

    Description

      We've set up a pop mail server and added the com.atlassian.jira.service.services.pop.PopService, using the Full Comment Handler.

      When we send an email to our "comment" address, everything works fine if it us just plain test. However, if it is plain text, with an html formatted version as an attachment, it seems to throw things for a loop. The plain text portion of the email gets attached to the issue as a comment, but then the srvice throws an exception and never gets a chance to delete the email from the pop3 server. As a result, when the service runs again, it creates another comment, witht he previous text, and dies again. It just continues to add the same comment over and over until we manually delete the service or the email.

      Log file entry:
      2003/06/13 11:23:40 | 2003-06-13 11:23:40,195 ERROR [service.util.handler.AbstractMessageHandler] Exception while creating attachment
      2003/06/13 11:23:40 | com.atlassian.core.AtlassianCoreException: Error in action: com.atlassian.jira.action.attachment.AttachmentCreate@e61897, result: error
      2003/06/13 11:23:40 | You must specify a filename and mime type
      2003/06/13 11:23:40 | at com.atlassian.core.action.ActionUtils.checkForErrors(ActionUtils.java:53)
      2003/06/13 11:23:40 | at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageHandler.java:88)
      2003/06/13 11:23:40 | at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:61)
      2003/06/13 11:23:40 | at com.atlassian.jira.service.util.handler.FullCommentHandler.handleMessage(FullCommentHandler.java:64)
      2003/06/13 11:23:40 | at com.atlassian.jira.service.services.pop.PopService.run(PopService.java:97)
      2003/06/13 11:23:40 | at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:54)
      2003/06/13 11:23:40 | at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:53)
      2003/06/13 11:23:40 | at org.quartz.core.JobRunShell.run(JobRunShell.java:147)
      2003/06/13 11:23:40 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:387)

      Example email which causes the problem:

      From ----@cadfx.com Fri Jun 13 11:43:08 2003
      Return-Path: <----@cadfx.com>
      Received: from MATTA.cadfx.com ([67.95.112.250])
      by cadfx.com (8.11.6/8.11.0) with ESMTP id h5DFh7b50435
      for <testbug@cadfx.com>; Fri, 13 Jun 2003 11:43:07 -0400 (EDT)
      (envelope-from ----@cadfx.com)
      Message-Id: <6.0.0.9.0.20030613114427.022e0938@cadfx.com>
      X-Sender: ----@cadfx.com (Unverified)
      X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.9 (Beta)
      Date: Fri, 13 Jun 2003 11:44:28 -0400
      To: testbug@cadfx.com
      From: Matthew Adair <----@cadfx.com>
      Subject: TEST-9 test email for html
      Mime-Version: 1.0
      Content-Type: multipart/alternative;
      boundary="=====================_274837505==.ALT"

      --=====================_274837505==.ALT
      Content-Type: text/plain; charset="us-ascii"; format=flowed

      ask daslfkasfjsaf
      fdsaf alskf asf
      asf askfjla
      asdfjaslkfja slfsad

      • asdfas fa
      • asdf
      • sadfds
      • df

      --=====================_274837505==.ALT
      Content-Type: text/html; charset="us-ascii"

      <html>
      <body>
      ask <b>daslfkasfjsaf<br>
      </b>fdsaf alskf asf<br>
      asf <i><u>askfjla <br>
      </u></i>asdfjaslkfja slfsad
      <ul>
      <li>asdfas fa
      <li>asdf
      <li>sadfds
      <li>df
      </ul></body>
      </html>

      -=====================_274837505==.ALT-

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              6b98bf68e0ff Matt Adair
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: