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

authMechanism URI options cannot be set individually

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0
    • Affects Version/s: 1.4.0
    • Component/s: auth, libmongoc
    • None

      mongoc_uri_option_is_utf8() reports true for "authMechanism", but mongoc_uri_set_option_as_utf8() is not suitable for setting that option. Based on the static mongoc_uri_parse_option() function, its value must be appended to uri->credentials instead of uri->options.

      "authMechanismProperties" also cannot be set, since mongoc_uri_parse_auth_mechanism_properties() is static.

      The PHP and HHVM drivers depend on being able to set URI options individually, since they allow options to be received in a separate array to be merged atop the values in the URI string.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: