Shell doesn't parse invalid keys correctly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.2.0
    • Component/s: Shell
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 }
      

            Assignee:
            Shaun Verch (Inactive)
            Reporter:
            Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: