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

SSL options are not added to test URI

    XMLWordPrintableJSON

Details

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

    Description

      If a test URI is set with our environment variable MONGOC_TEST_URI no SSL options will be added. But If we add ssl=true to the test URI we get the error:

      2019/09/06 09:50:31.0769: [ 7903]:  WARNING:       mongoc: Error parsing URI: 'Invalid host string in URI'
      

      To reproduce, (auth may not be needed):

      1. spin up a cluster with auth and SSL enabled
      2. export MONGOC_TEST_URI="mongodb://user:password@localhost:27017,localhost:27018/?ssl=true"
      OR
      export MONGOC_TEST_URI="mongodb://localhost:27017,localhost:27018/"
      3. run all transactions test. (transactions test requires a sharded cluster, auth and SSL)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: