Explain gives incorrect listCollections filter

XMLWordPrintableJSON

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

      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.

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

              Created:
              Updated:
              Resolved: