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

Comment Handlers fail if a project has not already had attachments added

    XMLWordPrintable

Details

    Description

      If you take a fresh install of JIRA, create a project TST and enable attachments, then create an issue but don't add any attachments to it. Now add the Create comment handler and try replying to a notification from JIRA about the issue. Looking in the attachments directory, the top-level directory TST does not yet exist.
      The error in the logfile is

      2008-02-05 12:16:35,894 JiraQuartzScheduler_Worker-2 ERROR [service.util.handler.AbstractMessageHandler] Problem reading attachment from email for issue TST-1
      java.io.IOException: The system cannot find the path specified
      	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
      	at java.io.File.checkAndCreate(Unknown Source)
      	at java.io.File.createTempFile(Unknown Source)
      	at java.io.File.createTempFile(Unknown Source)
      	at com.atlassian.jira.service.util.handler.AbstractMessageHandler.getFileFromPart(AbstractMessageHandler.java:406)
      	at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageHandler.java:343)
      	at com.atlassian.jira.service.util.handler.AbstractMessageHandler.saveAttachment(AbstractMessageHandler.java:312)
      	at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:287)
      	at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:234)
      	at com.atlassian.jira.service.util.handler.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java:110)
      	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:61)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      2008-02-05 12:16:35,894 JiraQuartzScheduler_Worker-2 ERROR [service.util.handler.AbstractMessageHandler] Exception while creating attachment for issue TST-1: java.io.IOException: Unable to create file?
      java.io.IOException: Unable to create file?
      	at com.atlassian.jira.service.util.handler.AbstractMessageHandler.getFileFromPart(AbstractMessageHandler.java:426)
      	at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageHandler.java:343)
      	at com.atlassian.jira.service.util.handler.AbstractMessageHandler.saveAttachment(AbstractMessageHandler.java:312)
      	at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:287)
      	at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:234)
      	at com.atlassian.jira.service.util.handler.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java:110)
      	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:61)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            73d805a2526b MattS
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: