[CDRIVER-4242] mongocryptdBypassSpawn extra option has no effect Created: 13/Dec/21  Updated: 31/Mar/22

Status: Backlog
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: None

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


 Description   

_mongoc_cse_client_enable_auto_encryption assigns the bypass_auto_encryption option (from mongoc_auto_encryption_opts_set_bypass_auto_encryption) after parsing all extra options (mongoc_auto_encryption_opts_set_extra).

Since _parse_extra() also assigns topology->mongocryptd_bypass_spawn when handling mongocryptdBypassSpawn, it stands to reason that the "mongocryptdBypassSpawn" extra option is never actually respected. Even if the extra option was specified and mongoc_auto_encryption_opts_set_bypass_auto_encryption was never called, the default value for the first-class option will overwrite anything that _parse_extra assigns.


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