<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:39:03 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-1239] MongoClient misinterprets connection settings</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1239</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;The default MongoClient Constructor tries to connect to &lt;tt&gt;Unspecified/localhost:27017&lt;/tt&gt; instead of &lt;tt&gt;localhost:27017&lt;/tt&gt;. Even if the constructor gets either MongoClientSettings or a connection string it does that strange thing of adding &lt;tt&gt;Unspecified/&lt;/tt&gt; as a prefix to the host name.&lt;/p&gt;</description>
                <environment>Client: Linux Mint 17.1 x86_64&lt;br/&gt;
Server: CentOS 7 x86_64&lt;br/&gt;
Mongod: db version v2.6.9&lt;br/&gt;
2015-04-12T07:34:10.623-0400 git version: df313bc75aa94d192330cb92756fc486ea604e64</environment>
        <key id="195483">CSHARP-1239</key>
            <summary>MongoClient misinterprets connection settings</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="m3t4lukas">Lukas Wagner</reporter>
                        <labels>
                            <label>connection</label>
                            <label>question</label>
                    </labels>
                <created>Sun, 12 Apr 2015 11:47:23 +0000</created>
                <updated>Fri, 5 Apr 2019 13:58:32 +0000</updated>
                            <resolved>Mon, 4 Apr 2016 23:25:04 +0000</resolved>
                                    <version>2.0</version>
                                                    <component>API</component>
                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="888889" author="m3t4lukas" created="Thu, 16 Apr 2015 12:57:12 +0000"  >&lt;p&gt;Hi Craig,&lt;/p&gt;

&lt;p&gt;it&apos;s in all tests the same with an IP Address added (127.0.0.1 as well as the external IP address of the adapter).&lt;/p&gt;

&lt;p&gt;This is the output of &apos;mono --version&apos;:&lt;br/&gt;
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1)&lt;br/&gt;
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com&lt;br/&gt;
	TLS:           __thread&lt;br/&gt;
	SIGSEGV:       altstack&lt;br/&gt;
	Notifications: epoll&lt;br/&gt;
	Architecture:  amd64&lt;br/&gt;
	Disabled:      none&lt;br/&gt;
	Misc:          softdebug &lt;br/&gt;
	LLVM:          supported, not enabled.&lt;br/&gt;
	GC:            sgen&lt;/p&gt;

&lt;p&gt;I&apos;m using monodevelop (the opt version which also has the dlang tools aboard, not from the official repos) and I set the project up to be using &apos;mono/.Net 4.5&apos;.&lt;br/&gt;
Hope that helps&lt;br/&gt;
Lukas&lt;/p&gt;</comment>
                            <comment id="888859" author="craiggwilson" created="Thu, 16 Apr 2015 12:00:48 +0000"  >&lt;p&gt;Have not had a chance yet Lukas... However, I have another question and a request: &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;What version of Mono are you using?&lt;/li&gt;
	&lt;li&gt;Could you try to use a fully qualified domain name or IP address instead of &quot;localhost&quot;?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Craig&lt;/p&gt;</comment>
                            <comment id="888856" author="m3t4lukas" created="Thu, 16 Apr 2015 11:48:43 +0000"  >&lt;p&gt;Were you able to reproduce? If not I can give you a virtual machine with the error.&lt;/p&gt;</comment>
                            <comment id="881058" author="m3t4lukas" created="Tue, 14 Apr 2015 18:50:45 +0000"  >&lt;p&gt;Thanks a lot &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
Just use the code I provided here and the 2.0.0 drivers from the GitHub release page.&lt;/p&gt;</comment>
                            <comment id="881053" author="craiggwilson" created="Tue, 14 Apr 2015 18:44:28 +0000"  >&lt;p&gt;Lukas, &lt;/p&gt;

&lt;p&gt;I&apos;m trying to reproduce this. We test on MacOSX and it&apos;s not a problem there. I&apos;ll fire up a linux box and see if I can reproduce.&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                            <comment id="880966" author="m3t4lukas" created="Tue, 14 Apr 2015 17:54:52 +0000"  >&lt;p&gt;I think the heading of this Report is wrong it shoud have something to do with &quot;No route to host for C# driver on Linux&quot;.&lt;/p&gt;</comment>
                            <comment id="880962" author="m3t4lukas" created="Tue, 14 Apr 2015 17:53:07 +0000"  >&lt;p&gt;It&apos;s the same on CentOS 7 (Fresh and clean install, mongodb on localhost).&lt;br/&gt;
If it doesn&apos;t work for CentOS 7 then I&apos;m sure it doesn&apos;t work for the rest of the Red Hat Linuxes.&lt;br/&gt;
If it doesn&apos;t work on Linux Mint, you can be sure it doesn&apos;t work on Ubuntu and almost be sure it doesn&apos;t work on Debian.&lt;br/&gt;
Now please test it, it is reproducable. Unfortunately Network tracing does not work for me, not sure why...&lt;/p&gt;</comment>
                            <comment id="880924" author="m3t4lukas" created="Tue, 14 Apr 2015 17:08:06 +0000"  >&lt;p&gt;I can even connect with java and c++. It has to be something about the c# driver.&lt;/p&gt;</comment>
                            <comment id="879987" author="m3t4lukas" created="Mon, 13 Apr 2015 19:24:04 +0000"  >&lt;p&gt;I think I have to rebuild the mongo driver with the d:TRACE compiler option? Any tips?&lt;/p&gt;</comment>
                            <comment id="879904" author="m3t4lukas" created="Mon, 13 Apr 2015 18:14:15 +0000"  >&lt;p&gt;I learned everything there is about tracing at msdn, but it just doesn&apos;t work. I defined he sources and I defined an output and I added the compiler option. I can&apos;t see any output.&lt;br/&gt;
I made a few more tests. I reinstalled mongod on localhost. I can still connect with robomongo and with mongo. And I still get &quot;System.Net.Sockets.SocketException: Connection refused&quot;&lt;/p&gt;</comment>
                            <comment id="879175" author="m3t4lukas" created="Sun, 12 Apr 2015 15:14:48 +0000"  >&lt;p&gt;I actually have no Idea how to trace C#, I recently began using it. I will try and find out how it works. For now I found out hat there is the possibility to create an app.config file. I pasted the code in there, cleaned and recompiled. Based upon how this piece of config file looks, I would expect there to be a network.log either in the directory I&apos;m running the program from or in the directory the executable resides in. However. there&apos;s nothing like that.&lt;/p&gt;</comment>
                            <comment id="879168" author="craiggwilson" created="Sun, 12 Apr 2015 14:21:14 +0000"  >&lt;p&gt;Lukas,&lt;/p&gt;

&lt;p&gt;I&apos;m not sure what to say. I can run your code without failure. In fact, this is almost exactly how our entire test suite runs.  There is going to be some setting somewhere that is causing this issue. If you could, please turn on &lt;a href=&quot;https://msdn.microsoft.com/en-us/library/ty48b824%28v=vs.110%29.aspx&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;network tracing&lt;/a&gt;, particularly the System.Net.Sockets one and maybe we can see inside the trace what is going on down in the network stack.&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                            <comment id="879167" author="m3t4lukas" created="Sun, 12 Apr 2015 14:17:43 +0000"  >&lt;p&gt;The same thing happens here Code_v2.cs. I can connect to this server via robomongo. It is running whithin a virtual machine&lt;/p&gt;</comment>
                            <comment id="879166" author="craiggwilson" created="Sun, 12 Apr 2015 13:51:24 +0000"  >&lt;p&gt;Hi Lukas,&lt;/p&gt;

&lt;p&gt;Sorry you are having trouble. The &lt;tt&gt;Unspecified/localhost:27017&lt;/tt&gt; is the output of a DnsEndPoint&apos;s ToString() method. What is really happening here is that we can&apos;t connect to &lt;tt&gt;localhost:27017&lt;/tt&gt;. Are you sure the mongod process is running? The root exception is this: &lt;/p&gt;

&lt;p&gt;&lt;tt&gt;System.Net.Sockets.SocketException: Connection refused.&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;This generally means that nothing is listening on &lt;tt&gt;localhost:27017&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="70459" name="Code.cs" size="371" author="m3t4lukas" created="Sun, 12 Apr 2015 11:47:23 +0000"/>
                            <attachment id="70462" name="Code_v2.cs" size="533" author="m3t4lukas" created="Sun, 12 Apr 2015 14:17:43 +0000"/>
                            <attachment id="70458" name="Exception" size="28975" author="m3t4lukas" created="Sun, 12 Apr 2015 11:47:23 +0000"/>
                            <attachment id="70463" name="Exception_v2" size="28966" author="m3t4lukas" created="Sun, 12 Apr 2015 14:17:43 +0000"/>
                    </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|hs80jb:</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>