[CDRIVER-1364] BSON type "JavaScript code w/ scope" cannot be reliably roundtripped Created: 06/Jul/16  Updated: 03/May/17  Resolved: 27/Oct/16

Status: Closed
Project: C Driver
Component/s: libbson
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Adam Chelminski (Inactive) Assignee: Backlog - C Driver Team
Resolution: Duplicate Votes: 0
Labels: intern2016
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CDRIVER-1335 libbson does not properly serialize t... Closed
Related
related to CDRIVER-1335 libbson does not properly serialize t... Closed
related to PHPC-714 Implement BSON corpus test suite Closed
related to PHPC-721 Javascript constructor should throw i... Closed
is related to CDRIVER-1695 libbson's bson-to-json does't allow f... Closed
is related to CDRIVER-1879 libbson truncates code_with_scope wit... Closed

 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



 Comments   
Comment by Hannes Magnusson [ 27/Oct/16 ]

Duplicate of CDRIVER-1335

Generated at Wed Feb 07 21:12:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.