[GODRIVER-1502] Extended JSON parsing mishandles invalid $code Created: 29/Feb/20 Updated: 28/Oct/23 Resolved: 13/Mar/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | JSON & ExtJSON |
| Affects Version/s: | 1.3.0 |
| Fix Version/s: | 1.3.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Golden | Assignee: | Divjot Arora (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
When parsing this document:
The follow error is received: "invalid JSON input; expected value for javascript". This should error due to an erroneous key next to $code. This document fails to error and produces an incorrect document:
Note that "abc" does not appear in the output. |
| Comments |
| Comment by Githook User [ 13/Mar/20 ] |
|
Author: {'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}Message: |
| Comment by Githook User [ 13/Mar/20 ] |
|
Author: {'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}Message: |
| Comment by Divjot Arora (Inactive) [ 11/Mar/20 ] |