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

Libmongocrypt binding does not work when libmongocrypt fails to load

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.12.0.rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      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

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            emily.giurleo@mongodb.com Emily Giurleo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: