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

Erroneous warning for automatic encryption

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      Observed on Ubuntu and MacOS

      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.

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

              Created:
              Updated:
              Resolved: