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.