Define expected behavior when listCollections returns no collection info document

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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?

            Assignee:
            Kevin Albertson
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: