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

XMLWordPrintableJSON

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

      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:
              Jeffrey Yemin
              Reporter:
              Jeffrey Yemin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: