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

Shell doesn't parse invalid keys correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Operating System:
      ALL

      Description

      MongoDB shell version: 2.2.0
      connecting to: test
      > db.test.remove()
      > db.test.insert({ "name" : "no admin 2", "isadmin" : false})
      > db.test.find()
      { "_id" : ObjectId("504f883dbc114eb55c6387af"), "name" : "no admin 2", "isadmin" : false }
      > db.test.insert({ "name\x16\x00\x08isadmin\x00\x01\x00\x00\x00\x00\x00" : "no admin 2", "isadmin" : false })
      > db.test.find()
      { "_id" : ObjectId("504f883dbc114eb55c6387af"), "name" : "no admin 2", "isadmin" : false }
      { "_id" : ObjectId("504f8843bc114eb55c6387b0"), "name" : null, "isadmin" : true, "isadmin" : true }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: