Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1364

BSON type "JavaScript code w/ scope" cannot be reliably roundtripped

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • libbson

    Description

      If a BSON "JavaScript code w/ scope" value (typecode \x0F) is appended to a document with an empty scope, it will be saved in the document as a BSON "JavaScript code" value (typecode \x0D).

      See https://github.com/mongodb/libbson/blob/cfbcb1eea853c6c0e82e618ce8e9575f270e125f/src/bson/bson.c#L955-L957

      Attachments

        Activity

          People

            backlog-c-driver Backlog - C Driver Team
            adam.chelminski@mongodb.com Adam Chelminski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: