Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4443

Replace org.bson.internal.Base64 with java.util.Base64

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 4.5.0
    • Internal
    • None
    • Minor Change
    • Not Needed

    Description

      The driver has a vendored copy of Apache Commons' Base64 implementation. Now that the driver's minimum JDK is Java 8, it can be replaced with the JDKs Base64 API.

      One reason to do this sooner than later is that it appears that the vendored code is buggy. It improperly decodes Mw6mdTVPQfm4quqSCLVB3g=, while the JDKs version throws an exception, which appears to be correct. When re-encoding, it encodes to Mw6mdTVPQfm4quqSCLVB3g==, which both versions are able to decode.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: