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

Message.writeTo() prematurely closes output stream if transfer encoding is BASE64

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.5
    • 0.5
    • None
    • None

    Description

      Entity.writeTo(OutputStream out, int mode) wraps the output stream in a Base64OutputStream if the transfer encoding is BASE64. Later the wrapper stream gets closed and (despite of a comment that says otherwise) the inner stream gets closed, too.

      Attachments

        1. Base64BugDemo.java
          2 kB
          Markus Wiederkehr
        2. mime4j-base64.patch
          2 kB
          Markus Wiederkehr
        3. mime4j-close-codec.patch
          9 kB
          Oleg Kalnichevski
        4. mime4j-close-codec-ioex.patch
          33 kB
          Markus Wiederkehr

        Activity

          People

            bago Stefano Bagnara
            wmax Markus Wiederkehr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: