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

Validate write command documents in the server

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • ALL

      It seems that you can currently insert cursor objects into mongo, which is a regression.

      > var x = db.test.find()
      > db.test.insert(x)
      SingleWriteResult({
              "writeErrors" : [ ],
              "writeConcernErrors" : [ ],
              "nInserted" : 1,
              "nUpserted" : 0,
              "nUpdated" : 0,
              "nModified" : 0,
              "nRemoved" : 0,
              "upserted" : [ ]
      })
      

      When using write commands (default, when using shell against new mongod), input validation is going to be deferred to the server and is not yet fully implemented.

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.emil@10gen.com Andrew Emil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: