Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3209

MongoUrlBuilder not Preserving ssl_ca_certs

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • 2.11.2
    • None
    • Builders
    • None

    Description

      The MongoUrlBuilder is not preserving the ssl_ca_certs property.  The following unit tests fails.

       

      [Test]
       public void MongoUrlBuilderDoesNotLooseCACerts()
       {
          var url = "mongodb://username:password@localhost:26018/?replicaSet=bla&ssl=true&ssl_ca_certs=/certs/cert.pem&connectTimeoutMS=5000000";
          var builder = new MongoUrlBuilder(url);
          var newUrl = builder.ToMongoUrl().ToString();
          Assert.IsTrue(newUrl.Contains("ssl_ca_certs"));
       }
      

       

      Attachments

        Activity

          People

            dmitry.lukyanov@mongodb.com Dmitry Lukyanov
            eric.zwiebel@gmail.com Eric Zwiebel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: