[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-user
Subject:    Re: (Buggy) Geronimo JavaMail implementation throws exception when opening content of an image attac
From:       Idea Harness <idea.harness () gmail ! com>
Date:       2012-08-13 16:34:58
Message-ID: CAHqKSuxoaU5vK5E5W6GmmR12H6Aqg-dmZsDWy_HCWvLcMhutVQ () mail ! gmail ! com
[Download RAW message or body]

Eric,

I created https://issues.apache.org/jira/browse/JAMES-1431 and added a
test mailet and sample attachment image files that cause this problem.

Regards,
IH

On Mon, Aug 13, 2012 at 3:28 AM, Eric Charles <eric@apache.org> wrote:
> Hi,
> Could you open a jira and attach there the mail that gives the exception so
> we can confirm this is geronimo mail bug?
>
> You can safely comment geronima jar, it' a chance for you that oracle mail
> jar is still on the classpath (we should normally have excluded it...).
>
> Thx, Eric
>
>
> On 08/10/2012 05:00 PM, Idea Harness wrote:
>>
>> Hi,
>>
>> When image files (Content-Type: image/gif, image/jpeg, image/jpg) are
>> attached to emails and Apache James 3.0 Beta4 serves as an MTA
>> I am getting these exceptions on MimeBodyPart.getContent() calls below :
>>
>> ...
>> [Unknown image type image/gif; name="clientRegistration.gif"]
>> javax.activation.UnsupportedDataTypeException: Unknown image type
>> image/gif;
>>   name="clientRegistration.gif" at
>>
>> org.apache.geronimo.javamail.handlers.AbstractImageHandler.getContent(AbstractImageHandler.java:57)
>>          at
>> javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:790)
>>          at javax.activation.DataHandler.getContent(DataHandler.java:537)
>>          at
>> javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637)
>>          at ...
>> ...
>>
>> [Unknown image type image/jpeg; name="clientRegistration.jpeg"]
>> javax.activation.UnsupportedDataTypeException: Unknown image type
>> image/jpeg;
>>   name="clientRegistration.jpeg" at
>>
>> org.apache.geronimo.javamail.handlers.AbstractImageHandler.getContent(AbstractImageHandler.java:57)
>>          at
>> javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:790)
>>          at javax.activation.DataHandler.getContent(DataHandler.java:537)
>>          at
>> javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637)
>>          at ...
>>
>> ...
>>
>> [Unknown image type image/jpg; name="clientRegistration.jpg"]
>> javax.activation.UnsupportedDataTypeException: Unknown image type
>> image/jpg;
>>   name="clientRegistration.jpg" at
>>
>> org.apache.geronimo.javamail.handlers.AbstractImageHandler.getContent(AbstractImageHandler.java:57)
>>          at
>> javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:790)
>>          at javax.activation.DataHandler.getContent(DataHandler.java:537)
>>          at
>> javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637)
>>          at ...
>>
>>
>> This used to work just fine with Apache James 3.0 Beta3 (there was
>> only Sun's Java Mail JAMES/lib/mail-1.4.4.jar), but started breaking
>> in
>> Apache James 3.0 Beta4 due to (the addition of)
>> JAMES/lib/geronimo-javamail_1.4_mail-1.6.jar which is buggy (and hides
>> Sun's JavaMail
>> even though it appears after it on the classpath (in
>> JAMES/conf/wrapper.conf JAMES/lib/mail-1.4.4.jar is argument 10 vs.
>> geronimo-javamail_1.4_mail-1.6.jar which is argument 88)).
>>
>> Commenting out geronimo-javamail_1.4_mail-1.6.jar in the
>> JAMES/conf/wrapper.conf fixes the problem (and from the tests that
>> I've done
>> nothing else breaks yet), how I'd like to know whether it's absolutely
>> needed or could be removed ?
>>
>> Regards,
>> IH
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
>
> --
> eric | http://about.echarles.net | @echarles
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic