[SERVER-8542] Delete character is allowed by JSON to BSON parser Created: 12/Feb/13 Updated: 25/Jan/24 Resolved: 25/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Andrew Emil (Inactive) | Assignee: | Andrew Emil (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Steps To Reproduce: | add the following test to jsontests.cpp class QuotedFieldName7 : public Bad { "; and the output is JsonTests::FromJsonTests::QuotedFieldName7 Expected expression fromjson( json() ) to throw MsgAssertionException but it threw nothing. @src/mongo/dbtests/jsontests.cpp:447 |
||||
| Participants: | |||||
| Comments |
| Comment by Andrew Emil (Inactive) [ 23/Apr/13 ] | ||||||||||||||||||||||||
|
To echo what Tad said, this is handled identically in all places in the code, so it seems like it is not a bug.
So, seems like this is not a problem at all, it goes round-trip in the same way using all json parsers we have. | ||||||||||||||||||||||||
| Comment by Tad Marshall [ 13/Feb/13 ] | ||||||||||||||||||||||||
|
The V8 JavaScript engine seems to think that DEL in a fieldname is OK:
I'm not sure that this is a bug. |