[
https://issues.apache.org/jira/browse/JAMES-3456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17239134#comment-17239134
]
Jean Helou commented on JAMES-3456:
-----------------------------------
Not really.
The possible cause was diagnosed by ~mbaechler and I don't really know how he
pinpointed that so I have no idea how long patching it would take me. Also I
run all my systems in utf8 so I wouldn't be affected anyway.
I "fixed" the jenkins pipeline by setting the env variables so the jenkins
pipeline defaults to UTF8. This is not a new issue and I feel that having a
CI pipeline even if it is biased towards UTF-8 is better than not having one.
I mostly wanted to document that there are encoding issues for people who may
run james on non UTF8 systems and record the relevant information.
> 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
> Priority: Major
> 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]