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

CSFLE badQueries and types errorContains failing to match on mongocryptd 6.0.0-alpha

    • Needed
    • Hide

      Resync the badQueries and types CSFLE specification tests to fix CSFLE tests run against latest mongocryptd 6.0.0-alpha. Resync to this commit: https://github.com/mongodb/specifications/commit/6a7158d51b4c41f2f4a9c1293c5e1dceb93ab5c2

      Show
      Resync the badQueries and types CSFLE specification tests to fix CSFLE tests run against latest mongocryptd 6.0.0-alpha. Resync to this commit: https://github.com/mongodb/specifications/commit/6a7158d51b4c41f2f4a9c1293c5e1dceb93ab5c2
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4332 Fixed 1.21.2
      CXX-2488 Fixed 3.6.7
      CSHARP-4136 Done 2.16.0
      GODRIVER-2378 Fixed 1.9.1
      JAVA-4572 Fixed 3.12.11, 4.6.0
      NODE-4181 Done
      MOTOR-930 Won't Do
      PYTHON-3221 Fixed 3.13, 4.1.1
      PHPLIB-839 Fixed 1.13.0-beta1, 1.13.0
      RUBY-2953 Fixed 2.18.0
      RUST-1265 Duplicate
      SWIFT-1543 Duplicate
      $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 CDRIVER-4332 Fixed 1.21.2 CXX-2488 Fixed 3.6.7 CSHARP-4136 Done 2.16.0 GODRIVER-2378 Fixed 1.9.1 JAVA-4572 Fixed 3.12.11, 4.6.0 NODE-4181 Done MOTOR-930 Won't Do PYTHON-3221 Fixed 3.13, 4.1.1 PHPLIB-839 Fixed 1.13.0-beta1, 1.13.0 RUBY-2953 Fixed 2.18.0 RUST-1265 Duplicate SWIFT-1543 Duplicate

      Summary

      Some "errorContains" assertions in badQueries and types CSFLE specification tests are failing in driver tests.

      One example is the "an update that would produce an array on an encrypted field errors" test:

        - description: "an update that would produce an array on an encrypted field errors"
          clientOptions:
            autoEncryptOpts:
              kmsProviders:
                aws: {} # Credentials filled in from environment.
          operations:
            - name: updateOne
              arguments:
                filter: { }
                update: { $set : { "encrypted_string": [1,2] }}
              result:
                errorContains: "Cannot encrypt element of type array"
      

      The actual error in mongocryptd 6.0 now contains a colon:

      Cannot encrypt element of type: array

      See this gist for reproduction steps.

      Motivation

      Who is the affected end user?

      DBX Engineers.

      How does this affect the end user?

      Blocked. CSFLE specification tests are failing.

      Is this issue urgent?

      Yes.

      Is this ticket required by a downstream team?

      No.

      Is this ticket only for tests?

      Yes.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: