Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1714

Merge connstring and ClientOptions validation

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      The ConnString type has functions to validate auth/ssl/etc, but this validation would not be done if ClientOptions were used instead of a URI. I wrote up a minimal example at https://gist.github.com/divjotarora/e4f8c9f14bfc154c857f9a1fb5a73f99. The clientFromURI function sees an error from NewClient because SCRAM-SHA-1 requires a username. The clientFromOpts function sees no error.

      Attachments

        Activity

          People

            preston.vasquez@mongodb.com Preston Vasquez
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: