Ensure collection.drop() always drops FLE2 collections

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: 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
            Reporter:
            Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: