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

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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: libbson

      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

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

              Created:
              Updated:
              Resolved: