Skip to content

text/calendar as string -> ClassCastException #311

Closed

Description

@abrunelliere

Hello,

i have got a mail with a part having a "text/calendar" mimetype converted as a string content :

--000000000000b7af0405bf5ce7e3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/calendar; charset="UTF-8"; method=REQUEST

BEGIN:VCALENDAR
PRODID:-//Events Calendar//iCal4j 1.0//EN
VERSION:2.0
CALSCALE:GREGORIAN
etc...

Which throws this exception (tested with the 6.5.1 version) :

java.lang.ClassCastException: class java.lang.String cannot be cast to class java.io.InputStream (java.lang.String and java.io.InputStream are in module java.base of loader 'bootstrap')
	at org.simplejavamail.converter.internal.mimemessage.MimeMessageParser.parseMimePartTree(MimeMessageParser.java:159)

it seems that the RFC 2445 allow this format.

Activity

  1. added a commit that references this issue on Apr 14, 2021
    be2f7e1
  2. added a commit that references this issue on Apr 15, 2021
    463bd76
  3. added this to the 6.5.2 milestone on Apr 15, 2021
  4. bbottema commented on Apr 15, 2021

    @bbottema
    Owner

    Fix released in 6.5.2. Thank you for your effort!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions