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

Shell js objects that have been deserialised appear to be of non-existent type "BSON"

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.1.7
    • Component/s: Shell
    • Server Tooling & Methods
    • ALL

      Below shows it for serverStatus(), but it's the same for anything coming back from the server, eg. find().

      $ /m/3.1.6/bin/mongo --norc
      MongoDB shell version: 3.1.6
      connecting to: test
      > print(db.serverStatus())
      [object Object]
      >
      bye
      $ /m/3.1.7/bin/mongo --norc
      MongoDB shell version: 3.1.7
      connecting to: test
      > print(db.serverStatus())
      [object BSON]
      > BSON
      2015-10-14T23:51:54.075+1100 E QUERY    [thread1] ReferenceError: BSON is not defined :
      @(shell):1:1
      
      > Object
      function Object() {
          [native code]
      }
      > var a = db.serverStatus()
      > a instanceof BSON
      2015-10-14T23:52:16.730+1100 E QUERY    [thread1] ReferenceError: BSON is not defined :
      @(shell):1:1
      
      > a instanceof Object
      true
      > a.pid instanceof NumberLong
      true
      > a.pid instanceof Object
      true
      

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: