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

disallow non-equality _id upserts to config servers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Won't Fix
    • None
    • None
    • Sharding
    • None
    • ALL

    Description

      It is possible to upsert a document with differing _ids on different config servers if the upsert is of the form:

      db.coll.update({ _id : { $gt : 1 }, user : 1 }, { $set : { user : 1 } }, { upsert : 1 })
      

      The _id field is present as an expression in the query, so _ids are still autogenerated on upsert. This form should probably just be disallowed to configs.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              greg_10gen Greg Studer
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: