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

        Sebb made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Sebb made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 3.2 [ 12320140 ]
        Resolution Fixed [ 1 ]
        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
        Sebb created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development