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

XMLWordPrintableJSON

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

      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
              Reporter:
              Nicholas Zolnierz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: