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

Support bypassDocumentValidation

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      PYTHON-982 Done 3.2
      PERL-561 Done 1.2.0
      NODE-540 Done
      RUBY-1036 Done 2.2.0
      PHP-1488 Won't Fix 1.6.x
      PHPLIB-125 Done 1.0.0-beta2
      SCALA-212 Done 1.1.0
      CXX-689 Done legacy-1.1.0-rc0
      CSHARP-1427 Done 1.11, 2.2
      JAVA-1985 Done 3.2.0
      CXX-690 Done 3.0.0-rc0
      CDRIVER-893 Done 1.3.0-beta0
      PHPC-443 Done 1.1.0
      RUST-15 Done
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion PYTHON-982 Done 3.2 PERL-561 Done 1.2.0 NODE-540 Done RUBY-1036 Done 2.2.0 PHP-1488 Won't Fix 1.6.x PHPLIB-125 Done 1.0.0-beta2 SCALA-212 Done 1.1.0 CXX-689 Done legacy-1.1.0-rc0 CSHARP-1427 Done 1.11, 2.2 JAVA-1985 Done 3.2.0 CXX-690 Done 3.0.0-rc0 CDRIVER-893 Done 1.3.0-beta0 PHPC-443 Done 1.1.0 RUST-15 Done

    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

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            barrie Barrie Segal
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: