-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.0.3
-
Component/s: JavaScript
-
None
-
ALL
> db.test.insert(
{'x': 'y\u0000a'})
> db.test.find()
> db.test.find()[0].x.length
1
The shell sends the string to the backend correctly, and the backend stores the data correctly (it's retrieved properly in Python), but the data received is truncated. x.length is 1, so this isn't a cosmetic problem in the shell; the data is actually incorrect.
- duplicates
-
SERVER-6646 Strings with NUL bytes don't round-trip correctly from BSON <-> JavaScript
- Closed