<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:28: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>[SERVER-12337] mongoshell client crashes in windows when running bad command</title>
                <link>https://jira.mongodb.org/browse/SERVER-12337</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Just run mongo shell in windows, this build. Can use any empty database, bellow I just use &apos;crash&apos;. Then runCommand on some collection, and it&apos;ll crash the shell:&lt;/p&gt;

&lt;p&gt;K:\thirdparty\mongodb-win32-x86_64-2008plus-2.4.8\bin&amp;gt;mongo 192.168.0.100&lt;br/&gt;
MongoDB shell version: 2.4.8&lt;br/&gt;
connecting to: 192.168.0.100/test&lt;br/&gt;
&amp;gt; use crash&lt;br/&gt;
switched to db crash&lt;br/&gt;
&amp;gt; db.receipts.runCommand(&apos;distinct&apos;, &apos;accountPayment&apos;)&lt;br/&gt;
Sun Jan 12 18:58:06.087 SyntaxError: Unexpected identifier&lt;/p&gt;</description>
                <environment>Windows 8 64-bit&lt;br/&gt;
</environment>
        <key id="105724">SERVER-12337</key>
            <summary>mongoshell client crashes in windows when running bad command</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="mark.benvenuto@mongodb.com">Mark Benvenuto</assignee>
                                    <reporter username="mpermana">MICHAEL PERMANA</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Jan 2014 03:04:05 +0000</created>
                <updated>Wed, 26 Aug 2015 00:39:49 +0000</updated>
                            <resolved>Thu, 23 Jul 2015 19:03:07 +0000</resolved>
                                    <version>2.4.8</version>
                    <version>2.6.3</version>
                                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="990322" author="mark.benvenuto" created="Tue, 28 Jul 2015 02:47:23 +0000"  >&lt;p&gt;This no longer reproduces in 3.0.x and later releases.&lt;/p&gt;</comment>
                            <comment id="710869" author="professorx" created="Wed, 3 Sep 2014 18:46:28 +0000"  >&lt;p&gt;I have had this error when importing a javascript file when working on the M101 course (I running v2.6.3 on windows).&lt;br/&gt;
The default db is test but even though the db is specified on the command line the &quot;use agg&quot; command causes the error: &lt;/p&gt;

&lt;p&gt;simple_aggregation_example&amp;gt;mongo localhost:27017/agg products.js&lt;br/&gt;
MongoDB shell version: 2.6.3&lt;br/&gt;
connecting to: localhost:27017/agg&lt;br/&gt;
2014-09-02T19:04:35.481+0100 SyntaxError: Unexpected identifier at products.js:2&lt;/p&gt;

&lt;p&gt;If I comment out the line in the js then it runs without error.&lt;br/&gt;
If I use the dos redirect it runs without error.&lt;/p&gt;

&lt;p&gt;Interestingly there&apos;s also some inconsistency between mongo.exe and mongoimport.exe. I believe mongoimport does not exibit this issue. Also if you compare the help output for both you&apos;ll find there&apos;s a difference as far as help text is copncerned.&lt;br/&gt;
Mongoimport help describes the redirect character whereas in reality I don&apos;t think one is needed. This inconsistency could do with some attention.&lt;/p&gt;</comment>
                            <comment id="631573" author="ramon.fernandez" created="Mon, 23 Jun 2014 17:09:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mpermana&quot; class=&quot;user-hover&quot; rel=&quot;mpermana&quot;&gt;mpermana&lt;/a&gt;, we are able to reproduce the shell crash and we are investigating.&lt;/p&gt;</comment>
                            <comment id="629515" author="ramon.fernandez" created="Fri, 20 Jun 2014 20:14:35 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mpermana&quot; class=&quot;user-hover&quot; rel=&quot;mpermana&quot;&gt;mpermana&lt;/a&gt;, is this still an issue for you? Are there any other messages after the &quot;SyntaxError&quot;? Or does the shell terminate?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="143409">SERVER-14332</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.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>Fri, 20 Jun 2014 20:09:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 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>
                            8 years, 29 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[Windows]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>professorx</customfieldvalue>
            <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
            <customfieldvalue>mpermana</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm43b:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>104328</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 this command , purposedly dont have the collection and field, it&apos;ll say invalid syntax, and crash:&lt;/p&gt;

&lt;p&gt;K:\thirdparty\mongodb-win32-x86_64-2008plus-2.4.8\bin&amp;gt;mongo 192.168.0.100&lt;br/&gt;
MongoDB shell version: 2.4.8&lt;br/&gt;
connecting to: 192.168.0.100/test&lt;br/&gt;
&amp;gt; use crash&lt;br/&gt;
switched to db crash&lt;br/&gt;
&amp;gt; db.receipts.runCommand(&apos;distinct&apos;, &apos;accountPayment&apos;)&lt;/p&gt;</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|hsa1kn:</customfieldvalue>

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