Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4242

mongocryptdBypassSpawn extra option has no effect

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

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: