Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2065

Libmongocrypt binding does not work when libmongocrypt fails to load

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12.0.rc0
    • Component/s: None
    • Labels:
      None

      Description

      Observed behavior:

      • User sets LIBMONGOCRYPT_PATH variable incorrectly
      • User attempts to use FLE
      • An error is raised telling them that the LIBMONGOCRYPT_PATH is invalid
      • User fixes LIBMONGOCRYPT_PATH
      • User attempts to use FLE
      • The libmongocrypt binding says that it has no method "mongocrypt_init"

      Even though the user fixes the LIBMONGOCRYPT_PATH env variable, the Ruby Binding class is not reloading, which means that the binding does not know the location of the C library and FLE will not work unless the driver is restarted.

      Expected behavior:

      • User sets LIBMONGOCRYPT_PATH variable incorrectly
      • User attempts to use FLE
      • An error is raised telling them that the LIBMONGOCRYPT_PATH is invalid
      • User fixes LIBMONGOCRYPT_PATH
      • User can use all features in FLE

        Attachments

          Activity

            People

            Assignee:
            oleg.pudeyev Oleg Pudeyev
            Reporter:
            emily.giurleo Emily Giurleo
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: