Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-250

Support bypassDocumentValidation

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • # Replies:
      1
    • Last comment by Customer:
      false
    • SERVER fixVersion:
      3.2

      Description

      The CRUD specification has added parameters to many of the options classes called bypassDocumentValidation. The following classes have been updated:

      • AggregateOptions: only for $out
      • InsertOneOptions: This is a new class, now with a single field.
      • InsertManyOptions
      • UpdateOptions
      • BulkWriteOptions
      • FindOneAndReplaceOptions
      • FindOneAndUpdateOptions

      Using the new option requires the BypassDocumentValidation permission which is granted to the built-in roles 'restore' and 'dbadmin'. Other commands that have been updated, but not specified in the CRUD spec are:

      • applyOps
      • clone
      • cloneCollection
      • copyDb
      • mapReduce

      Implementation for Unacknowledged Writes

      If your driver sends unacknowledged writes using op codes (OP_INSERT, OP_UPDATE, OP_DELETE), you MUST raise an error when bypassDocumentValidation is explicitly set (true or false) by a user on >= 3.2 servers.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  2 years, 34 weeks, 2 days ago
                  Date of 1st Reply: