Commons Net
  1. Commons Net
  2. NET-483

Base64.encodeBase64(byte[], boolean, boolean, int) does not calculate output size correctly for unchunked output

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2
    • Component/s: None
    • Labels:
      None

      Description

      The method Base64.encodeBase64(byte[] binaryData, boolean isChunked, boolean urlSafe, int maxResultSize) fails to calculate the output size correctly for unchunked output.

      This is because it assumes all output is chunked.

        Activity

        Hide
        Sebb added a comment -

        URL: http://svn.apache.org/viewvc?rev=1395097&view=rev
        Log:
        NET-483 Base64.encodeBase64(byte[], boolean, boolean, int) does not calculate output size correctly for unchunked output

        Added:
        commons/proper/net/trunk/src/test/java/org/apache/commons/net/util/
        commons/proper/net/trunk/src/test/java/org/apache/commons/net/util/Base64Test.java (with props)
        Modified:
        commons/proper/net/trunk/src/changes/changes.xml
        commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/Base64.java

        Show
        Sebb added a comment - URL: http://svn.apache.org/viewvc?rev=1395097&view=rev Log: NET-483 Base64.encodeBase64(byte[], boolean, boolean, int) does not calculate output size correctly for unchunked output Added: commons/proper/net/trunk/src/test/java/org/apache/commons/net/util/ commons/proper/net/trunk/src/test/java/org/apache/commons/net/util/Base64Test.java (with props) Modified: commons/proper/net/trunk/src/changes/changes.xml commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/Base64.java

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development