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

BSON code with scope serializes corrupt data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      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

              Assignee:
              ted.tuckman Ted Tuckman
              Reporter:
              jonathan.reams Jonathan Reams
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: