[CDRIVER-4653] create_collection_with_encryptedFields creates state collections before checking wire version for QEv2 Created: 30/May/23  Updated: 28/Oct/23  Resolved: 01/Jun/23

Status: Closed
Project: C Driver
Component/s: Client Side Encryption
Affects Version/s: None
Fix Version/s: 1.24.0

Type: Bug Priority: Unknown
Reporter: Jeremy Mikola Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by CDRIVER-4563 Drivers should not create the ECC col... Closed

 Description   

Summary

In cf45741 for CDRIVER-4563, the state collections for QEv2 are created before the wire version check for MongoDB 7.0+.

This is inconsistent with the order of operations defined in aa28f78 for DRIVERS-2524 and makes it possible for libmongoc to leave behind orphaned collections on a pre-7.0 server before returning an error.



 Comments   
Comment by Kevin Albertson [ 01/Jun/23 ]

Resolved by commit: https://github.com/mongodb/mongo-c-driver/commit/08d5935cf0a2f67baa450d07088bd42072d8fe9a. The commit message included an incorrect ticket number.

Generated at Wed Feb 07 21:21:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.