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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.0.1, 2.1
    • Affects Version/s: 2.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Craig Wilson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: