Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
None
Description
When the state is MONGOCRYPT_CTX_NEED_MONGO_COLLINFO a driver is supposed to run a listCollections command with the given filter and feed the resulting collection info document back to libmongocrypt.
What is a driver supposed to do when no document is returned? This would happen when the collection is dropped for example. Should the driver:
- feed in an empty BSON document?
- skip the call mongocrypt_ctx_mongo_feed altogether?
- raise an error?
- do something else?