Uploaded image for project: 'James Mime4j'
  1. James Mime4j
  2. MIME4J-326

Regression in Mime4J 0.8.10: cannot parse malformed encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.10
    • 0.8.11
    • core
    • None

    Description

      java.lang.Error: java.io.IOException: Unexpected end of BASE64 stream
      	at org.apache.james.mime4j.codec.DecoderUtil.decodeBase64(DecoderUtil.java:104)
      	at org.apache.james.mime4j.codec.DecoderUtil.decodeB(DecoderUtil.java:121)
      	at org.apache.james.mime4j.codec.DecoderUtil.tryDecodeEncodedWord(DecoderUtil.java:288)
      	at org.apache.james.mime4j.codec.DecoderUtil.decodeEncodedWords(DecoderUtil.java:249)
      	at org.apache.james.mime4j.codec.DecoderUtil.decodeEncodedWords(DecoderUtil.java:158)
      	at org.apache.james.mime4j.stream.RawFieldParser.copyQuotedContent(RawFieldParser.java:443)
      	at org.apache.james.mime4j.stream.RawFieldParser.parseValue(RawFieldParser.java:219)
      	at org.apache.james.mime4j.field.address.LenientAddressParser.parseAddress(LenientAddressParser.java:274)
      	at org.apache.james.mime4j.field.address.LenientAddressParser.parseAddressList(LenientAddressParser.java:319)
      	at org.apache.james.mime4j.field.address.LenientAddressParser.parseAddressList(LenientAddressParser.java:331)
      
      

      Caused by https://github.com/apache/james-mime4j/commit/d5ddd879a7fd4e1e1e7c9edb30850a43031fa7b3

      Sample input: "=?windows-1251?B?onsonsmekqixrbahkinyv?=" <atfilpd@louisphaethon.co.ua>

      We can fix this by using a silent monitor.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m