-
Type: Bug
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: 4.11.2
-
Component/s: Client Side Encryption
-
None
Steps to reproduce the error:
- Download the Java Application from GitHub linked in the Quick-Start documentation to encrypt a document with Client-Side Field Level Encryption (CSFLE) and a MongoDB driver.
- Configure your credentials
- In the csfle/java/local/reader/pom.xml file change the version of mongodb-driver-sync to 4.11.2 and the version of mongodb-crypt to 1.8.
- In the file csfle/java/local/reader/src/main/java/com/mongodb/csfle/InsertEncryptedDocument.java add a println(“Connection closed succesfully”) at the end of the class, after the lines mongoClientSecure.close(); and mongoClientRegular.close();
- Execute the InsertEncryptedDocument class
Actual Results
Closing mongoClientSecure stops the application and the println(“Connection closed succesfully”) or any other line after the close it is not executed.
Expected Results
The Mongo Client is closed fine and the application keeps running.
Possible reason/Workaround
If mongoClientSecure is not configured with cryptSharedLibPath (for example by removing the "extraOptions"), the close() works correctly and the print is displayed.
- is related to
-
JAVA-3807 Test driver on Windows in Evergreen
- Backlog