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

Inconsistent output between java driver and mongo shell

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • BSON
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: