Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-191

Encoding data using Base64OutputStream omits part of the input in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • 1.10
    • None
    • Java 7

    Description

      In case Base64OutputStream is used for encoding byte array produced from some strings, an incomplete result (that is inconsistent with both other Base64 implementations and Base64InputStream implementation) is produced. It appears that "s" character is getting omitted if it's in the end of the string to be encoded; there may be other cases as well.

      Here is the test that allows to reproduce the problem: http://kiberion.net/kibertoad/temp/codec-base64-error.zip

      Attachments

        Activity

          People

            Unassigned Unassigned
            kibertoad Igor Savin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: