Special encoding attachement filename Mail Handler

Hi,

Have you experienced something problem with weird filename attachements in email processing.

Continuous issue create, because Jira dont delete mail.

We got email with this attachement, that cause this problem:

ISO-8859-1''bo j�zsef.pdf

2013-12-01 16:46:55,906 QuartzScheduler_Worker-2 WARN ServiceRunner MyMailHandler [atlassian.mail.incoming.mailfetcherservice] MyMailHandler[10202]: Unable to create issue with message.

java.lang.NullPointerException

at javax.mail.internet.MimeUtility.quote(MimeUtility.java:974)

at javax.mail.internet.ParameterList.quote(ParameterList.java:658)

at javax.mail.internet.ParameterList.access$200(ParameterList.java:75)

at javax.mail.internet.ParameterList$ToStringBuffer.addNV(ParameterList.java:626)

at javax.mail.internet.ParameterList.toString(ParameterList.java:607)

at javax.mail.internet.ContentType.toString(ContentType.java:221)

at com.sun.mail.imap.IMAPBodyPart.<init>(IMAPBodyPart.java:82)

at com.sun.mail.imap.IMAPMultipartDataSource.<init>(IMAPMultipartDataSource.java:70)

at com.sun.mail.imap.IMAPBodyPart.getDataHandler(IMAPBodyPart.java:288)

at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637)

at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:649)

at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:622)

at com.atlassian.jira.plugins.mail.handlers.CreateIssueHandler.handleMessage(CreateIssueHandler.java:258)

at com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:133)

at com.metainf.jira.plugin.emailissue.handler.AutoReplyMailHandler.handleMessage(AutoReplyMailHandler.java:240)

at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:368)

at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:271)

at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:356)

at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257)

at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)

at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)

at org.quartz.core.JobRunShell.run(JobRunShell.java:195)

at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

1 answer

It could be the handler, it could be the database, you didnt indicate the JIRA version?

It could be database related, what is it, mysql? Its support for multibyte UTF-8 characters is not very good. Postgres is much better.

I'd be interested to try JEMH against such an email, if you want to forward me a 'text' dump of the entire content I'll happily push it through to confirm correct outcome?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

34 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you