Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-180

Erroneous warning for automatic encryption

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.0.0-rc0
    • None
    • None
    • Observed on Ubuntu and MacOS

    Description

      When a new MongoClient is created with auto_encryption_options that include a valid local schema, users get a spurious message: "WARNING local schema used but does not have encryption specifiers". Subsequent insert & find operations work as expected (automatic encryption is in fact occurring).

      Reproducible test case from (PYTHON-1983): https://jira.mongodb.org/secure/attachment/231133/hello_fle_python.py

      $ python hello_fle_python.py
      1.0.0-beta4
      WARNING local schema used but does not have encryption specifiers
      WARNING local schema used but does not have encryption specifiers
      WARNING local schema used but does not have encryption specifiers
      Encrypted insert & find succeeded.
      

      This warning should only display when a local schema was specified but lacked any encrypt properties in the json schema.

      Attachments

        Activity

          People

            kevin.albertson@mongodb.com Kevin Albertson
            kenneth.white@mongodb.com Kenneth White
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: