Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27954

Viewing a code_w_s object in the shell produces malformed output

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.4
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Platforms 2017-03-06

      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 } } }
      

            Assignee:
            spencer.jackson@mongodb.com Spencer Jackson
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: