james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Tellier (Jira)" <j...@apache.org>
Subject [jira] [Created] (MAILBOX-395) Lenient Mime charset parsing
Date Tue, 04 Feb 2020 09:16:00 GMT
Benoit Tellier created MAILBOX-395:
--------------------------------------

             Summary: Lenient Mime charset parsing
                 Key: MAILBOX-395
                 URL: https://issues.apache.org/jira/browse/MAILBOX-395
             Project: James Mailbox
          Issue Type: Improvement
          Components: elasticsearch
    Affects Versions: 3.4.0
            Reporter: Benoit Tellier
             Fix For: 3.5.0


We encountered the following error, leading to not indexed messages:


{code:java}
10:26:20.800 ESC[1;31m[ERROR]ESC[0;39m o.a.j.m.e.GroupConsumerRetry - Exception happens when
handling event after 0 retries
java.nio.charset.IllegalCharsetNameException: %CHARSET
        at java.nio.charset.Charset.checkName(Charset.java:315)
        at java.nio.charset.Charset.lookup2(Charset.java:484)
        at java.nio.charset.Charset.lookup(Charset.java:464)
        at java.nio.charset.Charset.forName(Charset.java:528)
        at java.util.Optional.map(Optional.java:215)
        at org.apache.james.mailbox.elasticsearch.json.MimePartParser.extractMimePartBodyDescription(MimePartParser.java:125)
        at org.apache.james.mailbox.elasticsearch.json.MimePartParser.manageBodyExtraction(MimePartParser.java:112)
        at org.apache.james.mailbox.elasticsearch.json.MimePartParser.processMimePart(MimePartParser.java:79)
        at org.apache.james.mailbox.elasticsearch.json.MimePartParser.parse(MimePartParser.java:61)
        at org.apache.james.mailbox.elasticsearch.json.IndexableMessage$Builder.instantiateIndexedMessage(IndexableMessage.java:109)
        at org.apache.james.mailbox.elasticsearch.json.IndexableMessage$Builder.build(IndexableMessage.java:75)
        at org.apache.james.mailbox.elasticsearch.json.MessageToElasticSearchJson.convertToJsonWithoutAttachment(MessageToElasticSearchJson.java:78)
        at org.apache.james.mailbox.elasticsearch.events.ElasticSearchListeningMessageSearchIndex.generateIndexedJson(ElasticSearchListeningMessageSearchIndex.java:160)
        at org.apache.james.mailbox.elasticsearch.events.ElasticSearchListeningMessageSearchIndex.add(ElasticSearchListeningMessageSearchIndex.java:145)
        at org.apache.james.mailbox.store.search.ListeningMessageSearchIndex.lambda$handleAdded$1(ListeningMessageSearchIndex.java:100)
{code}

Charset parsing is optinal, thus I believe we could sinply INFO log & ignore such failures
instead of crashing the whole indexing.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message