[CDRIVER-2310] Return error instead of asserting for malformed JSON Created: 03/Oct/17 Updated: 28/Oct/23 Resolved: 10/Oct/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libbson |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
|
In some cases of malformed JSON we're asserting instead of returning a useful error message. Some repros:
Passing these via json-to-bson will trigger asserts. |
| Comments |
| Comment by Githook User [ 10/Oct/17 ] |
|
Author: {'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson', 'username': 'kevinAlbs'}Message: |