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

BSON code with scope serializes corrupt data

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Platforms 2017-06-19

      It appears that we are not correctly converting code w/scope BSON types into strings - noticed this when calling explain on a query using $where

      "$where" : {
          "code" : "*\u0000\u0000\u0000function () { sleep(1000); return true; }\u0000\u0005\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
          "scope" : {
      
          }
      }
      

            Assignee:
            ted.tuckman@mongodb.com Ted Tuckman
            Reporter:
            jonathan.reams@mongodb.com Jonathan Reams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: