-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: None
-
Component/s: Client Side Encryption
What problem are you facing?
When using CSFLE with mongosh 1.4.1 / 1.4.2, decryption of array of objects fails with stacktrace. Older version (1.2.2) works correctly with the same script.
Decryption of single field works in the same environment.
What driver and relevant dependency versions are you using?
Mongosh 1.4.2
mongocryptd.exe --version
= mongos version v5.0.8
Reproducible on Windows and Linux.
MongoDB server - Atlas is used.
KMS: AWS
Steps to reproduce?
- (see attached script)
- create a Master and DEK key
- perform inserts with client with CSFLE active - works OK
- perform non-filtered find - `mycoll.find({})`
- mongo shell returns error mentioning field "code" inside object inside array (attached error1.log)
- secondĀ execution of the same command aborts whole shell and shows stacktrace (attached error2.log)
- `find` performed on encrypted collection with non-FLE session correctly returns binary data in place of encrypted fields / arrays (see encrypted_results.txt)
- same non-filtered find works OK with older shell (see unencrypted_results.txt)
- depends on
-
NODE-4280 Investigate NODE-4279 - [mongocrypt] decryption of array of objects fails with stacktrace
- Closed