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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.5.0
    • Affects Version/s: None
    • Component/s: Internal
    • None
    • Minor Change
    • Not Needed

      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.

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

              Created:
              Updated:
              Resolved: