[CXX-955] a escape sequence BUG Created: 24/Jun/16 Updated: 26/Jun/16 Resolved: 25/Jun/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Release |
| Affects Version/s: | 3.0.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | qi bao | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Recently,I found a strange phenomenon that most data can be read correctly,but there are a piece of data cannot work normally,it looks like this:
Did you notice that there are a escape sequence in the vaue of key introduce? Please fix this bug,thanks! |
| Comments |
| Comment by qi bao [ 25/Jun/16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
thanks! | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Morrow (Inactive) [ 25/Jun/16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This is a duplicate of | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Morrow (Inactive) [ 25/Jun/16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you for posting the reproduction. I think you are encountering the known bug The underlying issue is that the bsoncxx::to_json method does not properly escape the quote (and other) characters per the JSON specification. We plan to address this in the upcoming 3.0.2 C++11 driver release. Please follow | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by qi bao [ 25/Jun/16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
about environment: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by qi bao [ 25/Jun/16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The SSCCE:
about compile:
(ps: the boost source code is in my home directory ) about execute: =========================== Mongodb ================================ db: test collections: abc documents: /* 2 */ { "_id" : 146, "introduce" : "Servers need a way to know who a user is. \"Once a server knows who the user is, it can decide which transactions and resources the user can access. \" " }====================== Mongodb ======== End ======================== | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Morrow (Inactive) [ 24/Jun/16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you for the bug report. Can you please provide an SSCCE that demonstrates this issue? In other words, a standalone file that can be directly compiled without modification against the driver that demonstrates the problem? |