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

Validate write command documents in the server

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: