Inconsistent output between java driver and mongo shell

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeffrey Yemin
            Reporter:
            Varun Agrawal
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: