[DRIVERS-2272] CSFLE badQueries and types errorContains failing to match on mongocryptd 6.0.0-alpha Created: 10/Apr/22  Updated: 07/Jul/22  Resolved: 07/Jul/22

Status: Closed
Project: Drivers
Component/s: Client Side Encryption
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Done Votes: 0
Labels: yaml-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split to CDRIVER-4332 CSFLE badQueries and types errorConta... Closed
split to CSHARP-4136 CSFLE badQueries and types errorConta... Closed
split to CXX-2488 CSFLE badQueries and types errorConta... Closed
split to GODRIVER-2378 CSFLE badQueries and types errorConta... Closed
split to MOTOR-930 CSFLE badQueries and types errorConta... Closed
split to NODE-4181 CSFLE badQueries and types errorConta... Closed
split to PHPLIB-839 CSFLE badQueries and types errorConta... Closed
split to PYTHON-3221 CSFLE badQueries and types errorConta... Closed
split to RUBY-2953 CSFLE badQueries and types errorConta... Closed
split to RUST-1265 CSFLE badQueries and types errorConta... Closed
split to JAVA-4572 CSFLE badQueries and types errorConta... Closed
Related
is related to SERVER-65007 De-duplicate allowed BSON type set fo... Closed
Driver Changes: Needed
Downstream Changes Summary:

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

Driver Compliance:
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

 Description   

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.



 Comments   
Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: DRIVERS-2272 Fix errorContains in badQueries and types tests (#1177)
Branch: master
https://github.com/mongodb/specifications/commit/6a7158d51b4c41f2f4a9c1293c5e1dceb93ab5c2

Generated at Thu Feb 08 08:25:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.