Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
Description
When a mail with a malformed Content-Type attribute cause exception throwing:
Exception calling MailAttributesToMimeHeaders: In Content-Type string <file;name="something.pdf">, expected '/', got ; javax.mail.internet.ParseException: In Content-Type string <file;name="something.pdf">, expected '/', got ; at javax.mail.internet.ContentType.<init>(ContentType.java:104) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1508) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1172) at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:522) at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1531) at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2271) at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2231) at org.apache.james.server.core.MimeMessageCopyOnWriteProxy.saveChanges(MimeMessageCopyOnWriteProxy.java:513) at org.apache.james.transport.mailets.MailAttributesToMimeHeaders.service(MailAttributesToMimeHeaders.java:70) at org.apache.james.mailetcontainer.impl.camel.CamelProcessor.process(CamelProcessor.java:81) at org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor$MailetContainerRouteBuilder.handleMailet(CamelMailetProcessor.java:178) at org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor$MailetContainerRouteBuilder.lambda$configure$0(CamelMailetProcessor.java:155) at org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63) ... at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:168) at org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor.service(CamelMailetProcessor.java:68) at org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.service(AbstractStateCompositeProcessor.java:84) at org.apache.james.mailetcontainer.impl.JamesMailSpooler.lambda$run$0(JamesMailSpooler.java:163) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Attachments
Issue Links
- links to