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

Define expected behavior when listCollections returns no collection info document

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 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?

      Attachments

        Activity

          People

            kevin.albertson@mongodb.com Kevin Albertson
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: