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

findOneAndUpdate does not handle an empty update document properly

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: Write Operations
    • None
    • Minor Change

      The CRUD specification requires that an update contains at least one
      field, in order to check for application bugs. `updateOne` throws an exception when given an empty update document. `findOneAndUpdate` treats the empty update document as a no-op. The empty update document check for `findOneAndUpdate` must be updated in the same manner as the fix for JAVA-3328.

            Assignee:
            john.stewart@mongodb.com John Stewart (Inactive)
            Reporter:
            john.stewart@mongodb.com John Stewart (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: