<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:49:37 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-4868] ArgumentNullException in MongoClient constructor in 2.23.0</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4868</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;.NET 7.0.14 Web API project. Previously using 2.22.0 of the library with no issues. Upon update to 2.23.0, initializing a new MongoClient now throws an ArgumentNullException message of &quot;Value cannot be null. (Parameter &apos;factory&apos;)&quot;.&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Pleaseprovidetheversionofthedriver.Ifapplicable%2CpleaseprovidetheMongoDBserverversionandtopology%28standalone%2Creplicaset%2Corshardedcluster%29.&quot;&gt;&lt;/a&gt;Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).&lt;/h4&gt;

&lt;p&gt;2.23.0 of the driver&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;em&gt;With a .NET 7 console app or WebAPI, and 2.23.0 of the driver from Nuget, instantiate a MongoClient using the connection string constructor with a valid connection string.&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;Debug the application. At the point of client initialization .NET should throw an ArgumentNullException of &quot;Value cannot be null. (Parameter &apos;factory&apos;)&quot;&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;Downgrade the driver to 2.22.0, and debug the application. Client will initialize correctly.&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;Downgrading back to 2.22.0 alleviates the issue. This seems like it&apos;s potentially an issue with Microsoft&apos;s ILogger, but it&apos;s hard to say. The MongoClient constructor signatures don&apos;t appear to have changed, or at the very least haven&apos;t changed to allow passing an initialized logger instance.&lt;/p&gt;

&lt;p&gt;As this is the only dependency that I updated I&apos;m inclined to think there might be something amiss in the library, but I wasn&apos;t able to find a changelog for 2.23.0 (still pretty fresh) so this is just a guess.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2524034">CSHARP-4868</key>
            <summary>ArgumentNullException in MongoClient constructor in 2.23.0</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="boris.dogadov@mongodb.com">Boris Dogadov</assignee>
                                    <reporter username="robert.morrow@lexisnexisrisk.com">Rob Morrow</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Dec 2023 18:10:13 +0000</created>
                <updated>Mon, 18 Dec 2023 19:31:30 +0000</updated>
                            <resolved>Mon, 18 Dec 2023 19:31:30 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5958331" author="JIRAUSER1257742" created="Mon, 18 Dec 2023 19:31:12 +0000"  >&lt;p&gt;Thank you for reporting this issue &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=robert.morrow%40lexisnexisrisk.com&quot; class=&quot;user-hover&quot; rel=&quot;robert.morrow@lexisnexisrisk.com&quot;&gt;robert.morrow@lexisnexisrisk.com&lt;/a&gt;.&lt;br/&gt;
This was fixed in the latest 2.23.1 release.&lt;/p&gt;

&lt;p&gt;Closing this ticket as a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-4870&quot; title=&quot;CreateCluster throws NullReferenceException when not setting LoggingSettings&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-4870&quot;&gt;&lt;del&gt;CSHARP-4870&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="5948722" author="dbeng-pm-bot" created="Wed, 13 Dec 2023 18:10:16 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=robert.morrow%40lexisnexisrisk.com&quot; class=&quot;user-hover&quot; rel=&quot;robert.morrow@lexisnexisrisk.com&quot;&gt;robert.morrow@lexisnexisrisk.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2524632">CSHARP-4870</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_23812" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Assigned Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26445"><![CDATA[Dotnet Drivers]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1. What would you like to communicate to the user about this feature?&lt;br/&gt;
2. Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3. Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i2ma6c:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>