Emails containing attachments with non-ASCII names lost

XMLWordPrintable

    • 3.08
    • 9

      This is probably related to changes made for JRA-10825. When attaching a file (a PDF) containing chinese characters in the name, JIRA fails to add the attachment to the mentioned issue.

      Attached is the log (with -Dmail.debug=true) from parsing a mail with attached file with name 山手学院中学校 合格!.pdf:

      2007-04-10 15:56:11,993 JiraQuartzScheduler_Worker-2 DEBUG [service.util.handler.AbstractMessageHandler] part=javax.mail.internet.MimeBodyPart@1cb2dd1
      2007-04-10 15:56:11,993 JiraQuartzScheduler_Worker-2 DEBUG [service.util.handler.AbstractMessageHandler] Filename=null, content type=application/pdf, content=com.sun.mail.util.BASE64DecoderStream@2d150f
      2007-04-10 15:56:11,993 JiraQuartzScheduler_Worker-2 WARN [jira.issue.managers.DefaultAttachmentManager] Cannot create attachment without a filename - inline content? See http://jira.atlassian.com/browse/JRA-10825 (file=tempattach52584dat).
      2007-04-10 15:56:11,993 JiraQuartzScheduler_Worker-2 DEBUG [service.util.handler.AbstractMessageHandler] Encountered an error creating the attachment null for issue TP-13

            Assignee:
            Unassigned
            Reporter:
            Jeff Turner
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

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