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

MongoUrlBuilder not Preserving ssl_ca_certs

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.11.2
    • Component/s: Builders
    • None

      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"));
       }
      

       

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

              Created:
              Updated:
              Resolved: