[CSHARP-1861] NullReferenceException when using MONGODB-X509 with 2.4.0 driver Created: 05/Dec/16 Updated: 08/Dec/16 Resolved: 08/Dec/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Connectivity, Security |
| Affects Version/s: | 2.4 |
| Fix Version/s: | 2.4.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tommi Paananen | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | regression | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
NullReferenceException when using MONGODB-X509 authentication with 2.4.0 driver. This leads to TimeoutException. The same application code works with 2.3.0 driver (username is used with both driver versions). Tested with MongoDB 3.2.11 and 3.4.0. |
| Comments |
| Comment by Githook User [ 08/Dec/16 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Robert Stam [ 05/Dec/16 ] |
|
We made a recent change to X509 authentication that has a bug in it. See: https://jira.mongodb.org/browse/CSHARP-1822 I believe the problem is on this line: The problem is that while we are opening the connection the Description property is still null (it will have a value once the connection is opened). Sorry for the problem. I don't think there is a workaround. We will fix this in 2.4.1. In the meantime please continue using 2.3.0. |