Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1795

Collection update methods should throw if update document is empty

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.0.1, 3.1.0
    • Affects Version/s: 3.0.0
    • Component/s: Write Operations
    • None

      Collection update methods correctly validate that all keys in the update document start with the '$' character. However, they don't validate that the update document is not empty. This is incorrect because an empty update document is considered by the server to be a full document replacement.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: