geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] Commented: (GERONIMO-5415) Mail cannot handle image/jpeg
Date Wed, 30 Jun 2010 14:47:49 GMT


Sebb commented on GERONIMO-5415:

[Sorry, I was in a hurry, and did not provide many details - I thought it might be an obvious

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 
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(
	at javax.activation.DataSourceDataContentHandler.getContent(
	at javax.activation.DataHandler.getContent(
	at javax.mail.internet.MimeBodyPart.getContent(
	at org.apache.jmeter.protocol.mail.sampler.MailReaderSampler.appendMultiPart(

I'll attach the JMeter script and test files shortly.

The JMeter nightly builds are at:

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:
>             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.

View raw message