<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:16:22 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>[SERVER-8030] mongo shell crashes with missing host</title>
                <link>https://jira.mongodb.org/browse/SERVER-8030</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;$ mongo /songza&lt;br/&gt;
MongoDB shell version: 2.2.1&lt;br/&gt;
connecting to: /songza&lt;br/&gt;
Wed Dec 26 04:14:09 Assertion: 13110:HostAndPort: host is empty&lt;br/&gt;
0x6073f1 0x5d1aa9 0x4e7a79 0x5b6262 0x6aa5ac 0x6aaec8 0x69e4e7 0x6aa13f 0x668e46 0x668ec2 0x66a2ce 0x5cbcc4 0x4b5e09 0x5b09ad 0x4a406b 0x4a67e6 0x7ff9a08f7c4d 0x49f669 &lt;br/&gt;
 mongo(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6073f1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo11msgassertedEiPKc+0x99) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5d1aa9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo16ConnectionString5parseERKSsRSs+0x3c9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4e7a79&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(&lt;em&gt;ZN5mongo26mongo_external_constructorEP9JSContextP8JSObjectjPlS4&lt;/em&gt;+0x132) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5b6262&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_Invoke+0x40c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6aa5ac&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_InvokeConstructor+0x108) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6aaec8&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_Interpret+0x37c7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x69e4e7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(js_Execute+0x36f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6aa13f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(JS_EvaluateUCScriptForPrincipals+0x66) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x668e46&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(JS_EvaluateUCScript+0x22) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x668ec2&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(JS_EvaluateScript+0x6e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66a2ce&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo7SMScope4execERKNS_10StringDataERKSsbbbi+0x144) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5cbcc4&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo11shell_utils9initScopeERNS_5ScopeE+0x1e9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4b5e09&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo12ScriptEngine8newScopeEv+0x2d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5b09ad&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z5_mainiPPc+0x1d1b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4a406b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(main+0x26) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4a67e6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(__libc_start_main+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7ff9a08f7c4d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(__gxx_personality_v0+0x2a1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x49f669&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed Dec 26 04:14:09 Error: HostAndPort: host is empty src/mongo/shell/mongo.js:93&lt;br/&gt;
exception: connect failed&lt;/p&gt;</description>
                <environment>Ubuntu Precise&lt;br/&gt;
&lt;br/&gt;
Linux dev1.songza.com 2.6.32-347-ec2 #52-Ubuntu SMP Fri Jul 27 14:38:36 UTC 2012 x86_64 GNU/Linux&lt;br/&gt;
</environment>
        <key id="60349">SERVER-8030</key>
            <summary>mongo shell crashes with missing host</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="9">Done</resolution>
                                        <assignee username="tad">Tad Marshall</assignee>
                                    <reporter username="roysmith">Roy Smith</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Dec 2012 04:18:37 +0000</created>
                <updated>Mon, 11 Jul 2016 17:56:10 +0000</updated>
                            <resolved>Wed, 13 Mar 2013 14:03:10 +0000</resolved>
                                    <version>2.2.1</version>
                                    <fixVersion>2.4.6</fixVersion>
                    <fixVersion>2.5.0</fixVersion>
                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="391135" author="auto" created="Mon, 29 Jul 2013 18:16:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;tadmarshall&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8030&quot; title=&quot;mongo shell crashes with missing host&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8030&quot;&gt;&lt;del&gt;SERVER-8030&lt;/del&gt;&lt;/a&gt; Add IPv6 version of jstest&lt;br/&gt;
Branch: v2.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/47d1066c0bc4feef089193995b23d5899eb2eee1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/47d1066c0bc4feef089193995b23d5899eb2eee1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="391134" author="auto" created="Mon, 29 Jul 2013 18:16:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;tadmarshall&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8030&quot; title=&quot;mongo shell crashes with missing host&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8030&quot;&gt;&lt;del&gt;SERVER-8030&lt;/del&gt;&lt;/a&gt; Validate connection string in JavaScript connect() function&lt;/p&gt;

&lt;p&gt;Validate that the &quot;URL&quot; passed to the connect() function matches one of the&lt;br/&gt;
accepted formats (host:port/database, host/database or database) before trying&lt;br/&gt;
to use it to connect to a server.  Change a uassert in HostAndPort::init() to&lt;br/&gt;
an massert to match the massert four lines above it.  Add jstest for connect()&lt;br/&gt;
validation.&lt;br/&gt;
Branch: v2.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/031daa05328127af84a0625ab9165a531678fe5d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/031daa05328127af84a0625ab9165a531678fe5d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="288094" author="auto" created="Wed, 13 Mar 2013 14:01:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-13T13:50:02Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8030&quot; title=&quot;mongo shell crashes with missing host&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8030&quot;&gt;&lt;del&gt;SERVER-8030&lt;/del&gt;&lt;/a&gt; Add IPv6 version of jstest&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6309c19d489c97f54570436b89469432c60953ab&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6309c19d489c97f54570436b89469432c60953ab&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="286524" author="tad" created="Mon, 11 Mar 2013 18:48:01 +0000"  >&lt;p&gt;The jstests/connection_string_validation.js test checks two &quot;bad&quot; IPv6 connection strings, but no &quot;good&quot; (working) ones, so I&apos;ll add another test to verify that we can validate and use valid IPv6 connection strings.&lt;/p&gt;</comment>
                            <comment id="286514" author="auto" created="Mon, 11 Mar 2013 18:42:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-10T17:34:11Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8030&quot; title=&quot;mongo shell crashes with missing host&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8030&quot;&gt;&lt;del&gt;SERVER-8030&lt;/del&gt;&lt;/a&gt; Validate connection string in JavaScript connect() function&lt;/p&gt;

&lt;p&gt;Validate that the &quot;URL&quot; passed to the connect() function matches one of the&lt;br/&gt;
accepted formats (host:port/database, host/database or database) before trying&lt;br/&gt;
to use it to connect to a server.  Change a uassert in HostAndPort::init() to&lt;br/&gt;
an massert to match the massert four lines above it.  Add jstest for connect()&lt;br/&gt;
validation.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c40533e151407c0cc48cc0d514ec6fa2d600d374&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c40533e151407c0cc48cc0d514ec6fa2d600d374&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="285352" author="tad" created="Sat, 9 Mar 2013 23:04:22 +0000"  >&lt;p&gt;The massert producing the stack trace is from commit 421a6fbd20c96f28db154ac10354523aedd610c5 .&lt;/p&gt;</comment>
                            <comment id="224483" author="tad" created="Wed, 26 Dec 2012 11:50:02 +0000"  >&lt;p&gt;The code issues a uassert if the port is bad, but issues an massert if the entire host string is empty (which it is because the slash is interpreted as a separator between the host:port and the database name).  It should issue a uassert on an empty host string instead of an massert since this is user-provided data and not a program error.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="82692">SERVER-10244</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 26 Dec 2012 07:12:25 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 29 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 29 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>roysmith</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrndg7:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>37812</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Run &quot;mongo /anything&quot;.&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hri63j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>