[CSHARP-3962] Fix X509CertificateCollectionEqualityComparer comparing logic Created: 10/Nov/21  Updated: 28/Oct/23  Resolved: 22/Nov/21

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.14.0

Type: Bug Priority: Unknown
Reporter: Dmitry Lukyanov (Inactive) Assignee: Dmitry Lukyanov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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



 Comments   
Comment by Githook User [ 22/Nov/21 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-3962: Fix X509CertificateCollectionEqualityComparer comparing logic. (#691)
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/12fba2e50ebb06373fe1721650d5cfd27c57667f

Generated at Wed Feb 07 21:46:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.