Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5648

Error closing Mongo Client configured with cryptSharedLibPath in Auto Encryption Settings

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 4.11.2
    • Component/s: Client Side Encryption
    • None
    • Java Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Steps to reproduce the error:

      1. 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.
      2. Configure your credentials
      3. 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.
      4. 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();
      5. 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.

            Assignee:
            slav.babanin@mongodb.com Slav Babanin
            Reporter:
            mpombo@denodo.com María Pombo García
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: