[
https://issues.apache.org/jira/browse/GERONIMO-5415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883944#action_12883944
]
Sebb commented on GERONIMO-5415:
--------------------------------
[Sorry, I was in a hurry, and did not provide many details - I thought it might
be an obvious fix]
I don't have a simple test case (yet).
The symptom is that JMeter (trunk) works fine when using the Sun javamail jar
to read from a message file containing
Content-Type: image/jpeg; name=name.jpg
or
Content-Type: image/jpg; name=name.jpg.
When switching to geronimo, I get the following stack trace (enable debug
logging for Mail Reader Sampler) for /jpeg, but not /jpg:
2010/06/30 15:40:59 DEBUG - jmeter.protocol.mail.sampler.MailReaderSampler:
javax.activation.UnsupportedDataTypeException: Unknown image type image/jpeg;
name="10yearsASF_170x101.jpeg"
at
org.apache.geronimo.javamail.handlers.AbstractImageHandler.getContent(AbstractImageHandler.java:58)
at
javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:775)
at javax.activation.DataHandler.getContent(DataHandler.java:522)
at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:392)
at
org.apache.jmeter.protocol.mail.sampler.MailReaderSampler.appendMultiPart(MailReaderSampler.java:273)
I'll attach the JMeter script and test files shortly.
The JMeter nightly builds are at:
http://people.apache.org/builds/jakarta-jmeter/nightly/
You need both _bin and _lib archives; _lib includes the Geronimo jars.
You'll also need javamail 1.4.1 if you want to compare with the Sun impl.
> Mail cannot handle image/jpeg
> -----------------------------
>
> Key: GERONIMO-5415
> URL: https://issues.apache.org/jira/browse/GERONIMO-5415
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: specs
> Environment: geronimo-javamail_1.4_mail-1.8.1.jar
> Reporter: Sebb
> Assignee: Rick McGuire
>
> The following content type causes a problem when parsing mail:
> Content-Type: image/jpeg; name=name.jpg
> However the following is parsed OK:
> Content-Type: image/jpg; name=name.jpg
> The code should be able to handle both.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.