linagora / james-project

Mirror of Apache James Project
Apache License 2.0
72 stars 62 forks source link

MIME4J-330 Regression in MimeStreamParser: part body stream ends with CR #5285

Open Arsnael opened 1 month ago

Arsnael commented 1 month ago

CF JIRA ticket for the description => https://issues.apache.org/jira/browse/MIME4J-330

EDIT: look at the comment on the JIRA as well, somebody in the community did a git bisect to identify on which commit the regression was introduced

chibenwa commented 1 month ago

Thanks for opening the issue. This was on the personnal todo for a while.

From what I recall it was challenging to write a performant parser enforcing \r .

We shall likely invest in dedicated RawField static methods enforcing controls of none line break injection, called into the DOM API