Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1208

Ensure collection.drop() always drops FLE2 collections

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 1.4.1
    • Field Level Encryption
    • None
    • 2
    • Needed
    • Hide
      mongosh deviates from drivers in that collection.drop() will always use listCollections to look for an encryptedFields configuration (if no explicit {{encryptedFields}} option was passed to .drop() and the collection is not present in the Mongo constructor’s {{encryptedFieldsMap}}), even on Mongo instances that are not configured for automatic or explicit encryption.
      Show
      mongosh deviates from drivers in that collection.drop() will always use listCollections to look for an encryptedFields configuration (if no explicit {{encryptedFields}} option was passed to .drop() and the collection is not present in the Mongo constructor’s {{encryptedFieldsMap}}), even on Mongo instances that are not configured for automatic or explicit encryption.
    • Iteration Anemone

    Description

      If a collection was not listed in the Mongo() encryptedFieldsMap and no explicit encryptedFields option was passed to collection.drop(options), we always look up the encryptedFields from listCollections and pass that instead.

      Attachments

        Issue Links

          Activity

            People

              alena.khineika@mongodb.com Alena Khineika
              anna.henningsen@mongodb.com Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: