[jira] [Assigned] (GERONIMO-6851) The implementation for mail.mime.parameters.strict parameter is missing in jakarta\mail\internet\ParameterList.java class of geronimo-mail_2.1_spec-1.0.0-M1.jar in TomEE 9.1.0

"Richard Zowalla (Jira)" <[email protected]> Sat, 18 Jul 2026 19:34:00 +0000 (UTC)
Newsgroups gmane.comp.java.geronimo.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/GERONIMO-6851?page=3Dcom.atlas=
sian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Zowalla reassigned GERONIMO-6851:
-----------------------------------------

    Assignee: Richard Zowalla

> The implementation for mail.mime.parameters.strict parameter is missing i=
n jakarta\mail\internet\ParameterList.java class of geronimo-mail_2.1_spec-=
1.0.0-M1.jar in TomEE 9.1.0
> -------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------
>
>                 Key: GERONIMO-6851
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6851
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues)=20
>          Components: general
>            Reporter: Dharmraj Gocher
>            Assignee: Richard Zowalla
>            Priority: Major
>             Fix For: Mail_2.1_1.0.3
>
>
> As per the TomEE 9.1 documentation [https://jakarta.ee/specifications/pla=
tform/9.1/apidocs/jakarta/mail/internet/package-summary.html]
> There is *mail.mime.parameters.strict* Jakarta Mail implementation System=
 properties to control {{Content-Type}} and {{Content-Disposition}} =C2=A0t=
o contain whitespace and other special characters without being quoted.
> =C2=A0
> |mail.mime.parameters.strict|boolean|If set to false, when reading a mess=
age, parameter values in header fields such as {{Content-Type}} and {{Conte=
nt-Disposition}} are allowed to contain whitespace and other special charac=
ters without being quoted; the parameter value ends at the next semicolon. =
If set to true (the default), parameter values are required to conform to t=
he MIME specification and must be quoted if they contain whitespace or spec=
ial characters.|
> But there is no implementation for mail.mime.parameters.strict inside in =
jakarta\mail\internet\ParameterList.java class of geronimo-mail_2.1_spec-1.=
0.0-M1-src.jar in TomEE 9.1.0. Due to this, can't consume this implementati=
on for real time use cases.
> If any jakarta.mail.internet.MimeBodyPart content type does not contain d=
ouble quotes in content type e.g
> {code:java}
> jakarta.mail.internet.MimeBodyPart part =3D <some part assignement>
> part.getContentType()
> (java.lang.String) multipart/related; type=3Dtext/html; boundary=3DMErelb=
oundary-32775405-3-1674841212
> See above coming like type=3Dtext/html; not like type=3D"text/html";
> So if i use part.isMimeType("text/plain") this is failing.
> {code}
> =C2=A0
> To support such MimeBodyPart i turn off=C2=A0
> {code:java}
> -Dmail.mime.parameters.strict=3Dfalse {code}
> in tomee java option but no effect happened. When checking the code of ja=
karta\mail\internet\ParameterList.java class of geronimo-mail_2.1_spec-1.0.=
0-M1-src.jar in TomEE 9.1.0, I do not see this parameter.
> Due to this many email scenarios are not working.
> Debug logs-
> {code:java}
> part.isMimeType("text/plain")
> Error trace-
> Caused by: jakarta.mail.internet.ParseException: Missing ';'
> at jakarta.mail.internet.ParameterList.<init>(ParameterList.java:204)
> at jakarta.mail.internet.ContentType.<init>(ContentType.java:73)
> at jakarta.mail.internet.MimeBodyPart.isMimeType(MimeBodyPart.java:163{co=
de}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)