<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:26:53 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>[EF-89] Cannot use connection strings with multiple mongos instances</title>
                <link>https://jira.mongodb.org/browse/EF-89</link>
                <project id="22583" key="EF">Entity Framework</project>
                    <description>&lt;p&gt;{{I&apos;m using a sharded database, with multiple mongos instances.&#160; I would like to list them all in my connection string, such as &quot;mongodb://server1:27107,server2:27017,server3:27017&quot;.&#160; }}&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;This connection string works just fine with several other clients, but the EF Framework driver gives me a parsing error.&lt;/tt&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2529268">EF-89</key>
            <summary>Cannot use connection strings with multiple mongos instances</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="13201">Fixed</resolution>
                                        <assignee username="damien.guard@mongodb.com">Damien Guard</assignee>
                                    <reporter username="scott@aimsparking.com">Scott Newton</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Dec 2023 00:47:34 +0000</created>
                <updated>Wed, 3 Jan 2024 22:26:01 +0000</updated>
                            <resolved>Wed, 3 Jan 2024 22:22:57 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5984416" author="JIRAUSER1273673" created="Wed, 3 Jan 2024 22:26:01 +0000"  >&lt;p&gt;Hi Scott.&lt;/p&gt;

&lt;p&gt;Fix is now checked in and will go out with the next preview release which will be in a while. Hopefully the workaround will see you through in the mean time.&lt;/p&gt;

&lt;p&gt;Damien&lt;/p&gt;</comment>
                            <comment id="5984412" author="JIRAUSER1273673" created="Wed, 3 Jan 2024 22:25:27 +0000"  >&lt;p&gt;My response (over email) was:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;I&apos;ll ask our PM to figure out what&apos;s going on with the permissions.&lt;br/&gt;
&#160;&lt;br/&gt;
I was able to confirm that the string overload for UseMongoDb does indeed fail with that multiple syntax. It is expecting a URI and the format we use for specifying multiple servers is not actually a URI and so when we try to parse it in the EF provider to sanitize any passwords (for logging) the .NET built-in URI parser fails.&lt;br/&gt;
&#160;&lt;br/&gt;
As a workaround for now you can create and pass in a MongoClient object demonstrated in this ticket/on the README which doesn&apos;t go through that code path and works fine with multiple servers.&lt;br/&gt;
&#160;&lt;br/&gt;
Thanks!&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="5984408" author="JIRAUSER1273673" created="Wed, 3 Jan 2024 22:24:48 +0000"  >&lt;p&gt;Customer was unable to respond here (hopefully now fixed) so quoting their response here for reference:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;I apologize in advance for messaging you directly, but either I&apos;m incapable of finding the reply button on the website, or I don&apos;t have permission to reply to the issue on Jira.&lt;/p&gt;

&lt;p&gt;Anyways, this is a follow-up to this issue:&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/EF-89&quot; title=&quot;Cannot use connection strings with multiple mongos instances&quot; class=&quot;issue-link&quot; data-issue-key=&quot;EF-89&quot;&gt;&lt;del&gt;EF-89&lt;/del&gt;&lt;/a&gt; Cannot use connection strings with multiple mongos instances - MongoDB Jira&lt;/p&gt;

&lt;p&gt;I&apos;ve created a basic demo application which recreates the issue for you:&#160;&lt;a href=&quot;https://github.com/EDCScott/MongoConnectionStringDemo&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;EDCScott/MongoConnectionStringDemo (github.com)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The demo repo contains a readme with instructions on how to recreate my test environment as well, in case that is a factor in reproducing the issue.&lt;/p&gt;
&lt;/blockquote&gt;</comment>
                            <comment id="5981273" author="JIRAUSER1273673" created="Tue, 2 Jan 2024 21:15:20 +0000"  >&lt;p&gt;Hi Scott.&lt;/p&gt;

&lt;p&gt;I tried to reproduce this using the following and I&apos;m not getting a parsing error.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;var client = new MongoClient(&quot;mongodb://server1:27107,server2:27017,server3:27017&quot;);&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;var newOptions = new DbContextOptionsBuilder()&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160; .UseMongoDB(client, &quot;myDb&quot;)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160; .Options;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Can you provide a specific code sample/reproduction showing how you get the error?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Damien&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                    <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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i2n4rw:</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>