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

Inconsistent output between java driver and mongo shell

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None

      Mongo Shell version: 4.x

      https://github.com/mongodb/mongo-java-driver/blob/master/bson/src/main/org/bson/BsonBinaryReader.java#L139-L145

       

      I have noticed this code is causing conflicts with binData from mongoshell.

       

      To test the issue, just create a simple document

      {"A":  "bin2" : BinData(2, "aGVsbG8="),}

      //hello

      Java driver fails to process it.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            varun@varunagw.com Varun Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: