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

Object.bsonsize({...}) Crashes Shell

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.7
    • Affects Version/s: 1.5.6
    • Component/s: Shell
    • None
    • ALL

      The last line crashes the shell.

      MongoDB shell version: 1.5.6
      connecting to: test
      > Object.bsonsize(db.test1.findOne())
      37
      > Object.bsonsize("test")
      Sat Jul 24 11:00:41 Error: bsonsize requires one valid object (shell):0
      > Object.bsonsize({})
      0
      > Object.bsonsize(

      {x:1}

      )

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: