<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:16 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>[JAVA-430] Connection to mongodb://localhost:27017 gets UnknownHostException  if machine&apos;s hostname doesn&apos;t resolve</title>
                <link>https://jira.mongodb.org/browse/JAVA-430</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;If the machine&apos;s hostname does not resolve, then the following line will cause an UnknownHostException:&lt;br/&gt;
   ServerAddress sa=new ServerAddress(&quot;mongodb://localhost:27017&quot;);&lt;/p&gt;

&lt;p&gt;That&apos;s because the constructor for ServerAddress recognises the string &quot;localhost&quot; and calls InetAddress.getLocalHost(). This issue does not occur if you use &quot;127.0.0.1&quot; instead of &quot;localhost&quot;.&lt;/p&gt;

&lt;p&gt;If you feel this is intended behavior, would you consider noting it in the documentation.&lt;/p&gt;</description>
                <environment>$ cat /etc/redhat-release&lt;br/&gt;
Red Hat Enterprise Linux Server release 6.0 (Santiago)&lt;br/&gt;
$  java -version&lt;br/&gt;
java version &amp;quot;1.6.0_17&amp;quot;&lt;br/&gt;
OpenJDK Runtime Environment (IcedTea6 1.7.4) (rhel-1.21.b17.el6-x86_64)&lt;br/&gt;
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)</environment>
        <key id="21961">JAVA-430</key>
            <summary>Connection to mongodb://localhost:27017 gets UnknownHostException  if machine&apos;s hostname doesn&apos;t resolve</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="jfeibusc@ebay.com">John Feibusch</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Sep 2011 17:29:03 +0000</created>
                <updated>Wed, 19 Oct 2016 14:17:25 +0000</updated>
                            <resolved>Tue, 15 May 2012 14:34:02 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="119622" author="jeff.yemin" created="Tue, 15 May 2012 14:33:45 +0000"  >&lt;p&gt;Not intended, and it&apos;s fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-249&quot; title=&quot;Java Driver cannot connect to &amp;#39;localhost&amp;#39; when mongod is listening only on 127.0.0.1 (or &amp;quot;localhost&amp;quot;)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-249&quot;&gt;&lt;del&gt;JAVA-249&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="14161">JAVA-249</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|hrhbpr:</customfieldvalue>

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