[CDRIVER-4678] Parsing `[ { $code: ... } ]` or `[{$dbPointer: ...}]` results in unexpected key Created: 12/Jul/23 Updated: 28/Oct/23 Resolved: 26/Jul/23 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.24.3 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Kevin Albertson | Assignee: | Josh Siegel (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
SummaryParsing
results in BSON data with an unexpected "\xbe" key:
The same"\xbe" key appears for parsing $dbPointer. The expected behavior is to parse to an array document with the key "0". The expected parsed BSON is to be equivalent to parsing:
results in BSON data with the expected "0" key:
Environmentlibbson 1.24.1 on macOS 12.6.7 arm64. Clang 16.0.5. How to ReproduceHere is a branch with a failing test: https://github.com/mongodb/mongo-c-driver/compare/master...kevinAlbs:mongo-c-driver:code_parsing_bug?expand=1 :
|
| Comments |
| Comment by Githook User [ 28/Jul/23 ] |
|
Author: {'name': 'Joshua Siegel', 'email': '39130209+joshbsiegel@users.noreply.github.com', 'username': 'joshbsiegel'}Message: |
| Comment by Githook User [ 26/Jul/23 ] |
|
Author: {'name': 'Joshua Siegel', 'email': '39130209+joshbsiegel@users.noreply.github.com', 'username': 'joshbsiegel'}Message: |