-
Type: Bug
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: libmongoc
-
None
_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.