[SERVER-27954] Viewing a code_w_s object in the shell produces malformed output Created: 08/Feb/17  Updated: 12/Jun/17  Resolved: 01/Mar/17

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 3.5.4

Type: Bug Priority: Major - P3
Reporter: Spencer Jackson Assignee: Spencer Jackson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-25973 BSON code with scope serializes corru... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-03-06
Participants:

 Description   

Viewing a code_w_s object in the shell produces output like the following:

{ "_id" : ObjectId("589b894d5233185cfb49d642"), "document" : { "code" : "\u0011\u0000\u0000\u0000print('Hi!' + x)\u0000\f\u0000\u0000\u0000\u0010x\u0000\u0005\u0000\u0000\u0000\u0000\u0000\u00031", "scope" : { "x" : 5 } } }



 Comments   
Comment by Githook User [ 01/Mar/17 ]

Author:

{u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}

Message: SERVER-27954: Correctly parse code_w_s in shell
Branch: master
https://github.com/mongodb/mongo/commit/1ccab79c7716b88126384600efcd577d59c040d1

Generated at Thu Feb 08 04:16:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.