Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39873

[FLE] Error if upsert would cause server-generated value

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.10
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Fully Compatible
    • Query 2019-04-08, Query 2019-04-22

      In some cases, an update command with the {upsert: true} flag could result in the server generating an _id field. If this is true, and the schema indicates that _id is encrypted, then mongocryptd must return an error. As part of this ticket we should also:

      1. Determine whether this work will be necessary for findAndModify, once mongocryptd also supports findAndModify.
      2. Confirm that the server does not choose new values for top-level Timestamp(0,0) for upserts. We believe this behavior is insert-specific, but we need to confirm.
      3. Confirm that full document replacement-style updates will autogenerate current time from Timestamp(0, 0).

            Assignee:
            ted.tuckman@mongodb.com Ted Tuckman
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: