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

Fix X509CertificateCollectionEqualityComparer comparing logic

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.14.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The X509CertificateCollectionEqualityComparer.Equals fails if "X509CertificateCollection rhs" is null, it should be fixed.

      Integration repro:

                  var clientSettings1 = new MongoClientSettings()
                  {
                      SslSettings = new SslSettings
                      {
                          ClientCertificates = new X509Certificate2[] { new X509Certificate2("path", "pass") }
                      }
                  };            var client1 = new MongoClient(clientSettings1);
                  var clientSettings2 = new MongoClientSettings()
                  {
                      SslSettings = new SslSettings
                      {
                          ClientCertificates = null
                      }
                  };
                  var client2 = new MongoClient(clientSettings2);
      

            Assignee:
            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Reporter:
            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: