You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2010/06/30 02:31:49 UTC
[jira] Created: (GERONIMO-5415) Mail cannot handle image/jpeg
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
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.
[jira] Commented: (GERONIMO-5415) Mail cannot handle image/jpeg
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (GERONIMO-5415) Mail cannot handle image/jpeg
Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rick McGuire resolved GERONIMO-5415.
------------------------------------
Resolution: Fixed
Committed revision 959385.
The error was in how the handler was processing the content type and requesting the specific image support. That has been fixed, however, this was still producing different results from the Sun reference implementation, which had disabled the image type handlers in 1.4.1. For compatibility reasons, these handlers have been disabled in the mailcap definition.
> 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
> Attachments: Geronimo-5415.jmx, testjpeg.msg, testjpg.msg, user.properties
>
>
> 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.
[jira] Assigned: (GERONIMO-5415) Mail cannot handle image/jpeg
Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rick McGuire reassigned GERONIMO-5415:
--------------------------------------
Assignee: Rick McGuire
> 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.
[jira] Updated: (GERONIMO-5415) Mail cannot handle image/jpeg
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb updated GERONIMO-5415:
---------------------------
Attachment: testjpeg.msg
testjpg.msg
Geronimo-5415.jmx
> 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
> Attachments: Geronimo-5415.jmx, testjpeg.msg, testjpg.msg
>
>
> 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.
[jira] Commented: (GERONIMO-5415) Mail cannot handle image/jpeg
Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883859#action_12883859 ]
Rick McGuire commented on GERONIMO-5415:
----------------------------------------
What are the problem symptoms? Can you provide a sample program that reproduces the problem? The mailcap setup for javamail only has handlers defined for image/jpeg, so this is the opposite of what I would expect to see.
> 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.
[jira] Updated: (GERONIMO-5415) Mail cannot handle image/jpeg
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb updated GERONIMO-5415:
---------------------------
Attachment: user.properties
Sample user.properties to set the appropriate logging level
> 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
> Attachments: Geronimo-5415.jmx, testjpeg.msg, testjpg.msg, user.properties
>
>
> 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.