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

Immutable update checks not done for replacements

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.4
    • Affects Version/s: None
    • Component/s: Sharding, Write Ops
    • None
    • Fully Compatible
    • ALL

      In the case of a replacement the query values are not compared letting things like this through:

      // a is immutable
      update({a:1}, {a:2})
      

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: