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

XMLWordPrintableJSON

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

      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 Horowitz (Inactive)
              Reporter:
              Scott Hernandez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: