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

Explain gives incorrect listCollections filter

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      After CDRIVER-3148, mongocrypt_ctx_encrypt_init was changed to accept the full command to be encrypted, and generate the listCollections filter based on the parsed collection name. For almost every collection command, the value of the first key is the collection name. However, explain is an exception. It wraps another command in a subdocument like so:

      { explain: { find: "coll", filter: {} }
      

      This wasn't being parsed correctly and resulted in a listCollections filter with an empty collection name.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: