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

Ensure collection.drop() always drops FLE2 collections

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.1
    • Affects Version/s: None
    • Component/s: Field Level Encryption
    • None
    • 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.

      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.

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

              Created:
              Updated:
              Resolved: