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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libbson
    • Labels:
    • Story Points:
      4

      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

          Issue Links

            Activity

              People

              Assignee:
              backlog-c-driver Backlog - C Driver Team
              Reporter:
              adam.chelminski Adam Chelminski
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: