Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1265

Update variants allow sending empty documents as update statements, which results in a replacement

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.1, 2.1
    • Affects Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      This should not be legal due to the second argument being a replacement (i.e., no dollar operators exist.)

      await collection.UpdateOneAsync("{x:1}", "{ }");
      

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: