<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:42:48 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-2524] MongoUrlBuilder creates wrong url.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2524</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I use the MongoUrlBuilder to extract the database name from a connection string, but the following code throws an exception&lt;/p&gt;


&lt;p&gt;var mongoUrl = new MongoUrlBuilder(&quot;mongodb+srv://user:pass@host/Database?retryWrites=true&quot;) { DatabaseName = null };&lt;/p&gt;

&lt;p&gt;ConnectionString = mongoUrl.ToMongoUrl();&lt;/p&gt;

&lt;p&gt;MongoConfigurationException&lt;br/&gt;
Host for mongodb+srv scheme cannot specify a port.&lt;/p&gt;

&lt;p&gt;When I use .ToString() I the following url back:&lt;/p&gt;

&lt;p&gt;mongodb+srv://user:pass@host:53/?ssl=true;retryWrites=true&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Which then throws the same exception when creating a MongoClient.&lt;/p&gt;</description>
                <environment></environment>
        <key id="698480">CSHARP-2524</key>
            <summary>MongoUrlBuilder creates wrong url.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="-1">Unassigned</assignee>
                                    <reporter username="mail2stehle@gmail.com">Sebastian Stehle</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Feb 2019 10:45:59 +0000</created>
                <updated>Tue, 16 Nov 2021 15:23:38 +0000</updated>
                            <resolved>Mon, 25 Feb 2019 20:16:17 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2152794" author="mail2stehle@gmail.com" created="Fri, 15 Feb 2019 10:54:32 +0000"  >&lt;p&gt;Sorry, dupliacate of #&lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2459&quot; title=&quot;Do not output port in ToString() for &amp;#39;+srv&amp;#39; urls&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2459&quot;&gt;&lt;del&gt;CSHARP-2459&lt;/del&gt;&lt;/a&gt; ... can be deleted.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="659260">CSHARP-2459</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <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|hudfzb:</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>