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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1, 2.1
    • Component/s: None
    • Labels:
      None
    • Sprint:
      C# Sprint 19

      Description

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

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              craiggwilson Craig Wilson
              Reporter:
              craiggwilson Craig Wilson
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: