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

BSON code with scope serializes corrupt data

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-06-19

    Description

      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" : {
       
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: