Jean Helou created JAMES-3456:
---------------------------------
Summary: Inconsistent encoding handling in non utf8 env
Key: JAMES-3456
URL: https://issues.apache.org/jira/browse/JAMES-3456
Project: James Server
Issue Type: Bug
Environment:
https://builds.apache.org/job/james/job/ApacheJames/view/change-requests/job/PR-265/3
default jenkins platform encoding (which seems to be non utf8)
Reporter: Jean Helou
Attachments: consoleText.txt
Trying to enforce CI on jenkins yields its first benefits :)
{code:java}
[ERROR] Failures:
[ERROR]
StripAttachmentTest.serviceShouldDecodeFilenameAndSaveAttachmentInAFolderWhenPatternMatchAndDecodeFilenameTrue:248->lambda$serviceShouldDecodeFilenameAndSaveAttachmentInAFolderWhenPatternMatchAndDecodeFilenameTrue$4:255
File:
</tmp/1606343586236-0/e_Pubblicita_e_vietata_Milano90524552757269241733277.tmp>
read with charset <ISO-8859-1> does not have the expected content:
Changed content at line 1:
expecting:
["#¤ãàé"]
but was:
["#¤ãà é"]
[ERROR]
StripAttachmentTest.serviceShouldSaveAttachmentInAFolderWhenNotPatternDoesntMatch:211->lambda$serviceShouldSaveAttachmentInAFolderWhenNotPatternDoesntMatch$2:216
File:
</tmp/1606343586278-0/temp_filname8490039664328963043.tmp>
read with charset <ISO-8859-1> does not have the expected content:
Changed content at line 1:
expecting:
["#¤ãàé"]
but was:
["#¤ãà é"]
[ERROR]
StripAttachmentTest.serviceShouldSaveAttachmentInAFolderWhenPatternMatch:137->lambda$serviceShouldSaveAttachmentInAFolderWhenPatternMatch$0:141
File:
</tmp/1606343585769-0/_107182230883202862024.tmp>
read with charset <ISO-8859-1> does not have the expected content:
Changed content at line 1:
expecting:
["#¤ãàé"]
but was:
["#¤ãà é"]
[INFO]
[ERROR] Tests run: 1569, Failures: 3, Errors: 0, Skipped: 0
{code}
The tests of at least one module have failed because of inconsistent encoding
handling.
A possible source for the error could be
src/main/java/org/apache/james/core/builder/MimeMessageBuilder.java:387
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]