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

Collection update methods should throw if update document is empty

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.0.1, 3.1.0
    • 3.0.0
    • Write Operations
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: