Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Done
-
None
-
None
-
Minor Change
-
ALL
Description
SpiderMonkey: JS -> BSON is correct, but not BSON -> JS
V8: I think both are broken
See v8 build failure at http://buildlogs.mongodb.org/build/5016c861d2a60f1068000491/test/5016c87dd2a60f1326000417/
That test passes on SM but this fails:
> db.foo.drop()
|
true
|
> db.foo.insert({key:'adsf\0asdf'})
|
> db.foo.findOne()
|
{ "_id" : ObjectId("5016cec9eee3e47040cf29dd"), "key" : "adsf" }
|
Note that it is written to the db correctly and readable by pymongo:
In [5]: db.foo.find_one()
|
Out[5]: {'_id': ObjectId('5016cec9eee3e47040cf29dd'), 'key': 'adsf\x00asdf'}
|
Attachments
Issue Links
- is duplicated by
-
SERVER-3614 strings with embedded nulls cannot be retrieved correctly
-
- Closed
-
-
SERVER-6556 aggregation Value does not handle string values with null characters properly
-
- Closed
-
-
SERVER-5462 Shell doesn't handle embedded nulls correctly
-
- Closed
-
-
SERVER-12756 Mongo shell not handling \u0000 correctly
-
- Closed
-
- is related to
-
SERVER-2407 Switch to v8
-
- Closed
-