<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:53:36 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-277] Helpful error message when trying to eval something which isn&apos;t code</title>
                <link>https://jira.mongodb.org/browse/SERVER-277</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Would be nice to have the server to not die when trying to eval something which it can&apos;t eval.&lt;/p&gt;

&lt;p&gt;// SHELL&lt;/p&gt;

&lt;p&gt;var invalid = {};&lt;br/&gt;
db.eval(invalid.reference);&lt;br/&gt;
Thu Sep  3 14:07:39 JS Error: Error: error doing query: failed (anon):118&lt;/p&gt;


&lt;p&gt;// MONGO DAEMON&lt;br/&gt;
db/dbeval.cpp:41: failed assertion `e.type() == Code || e.type() == CodeWScope || e.type() == String&apos;&lt;br/&gt;
Thu Sep  3 14:07:39  Got signal: 6 (Abort trap).&lt;br/&gt;
Thu Sep  3 14:07:39  Last op: { opid: 2, active: 1, secs_running: 0, op: &quot;query&quot;, ns: &quot;test.$cmd&quot;, query: &quot;&lt;/p&gt;
{ $eval: undefined }
&lt;p&gt;&quot;, inLock: 1, client: &quot;127.0.0.1:50082&quot; }&lt;br/&gt;
Thu Sep  3 14:07:39  Backtrace:&lt;br/&gt;
0x13ada8 0x965622bb 0xffffffff 0x3ed26 0x13876b 0x13d012 0x13d6b4 0x143e3c 0x2216 &lt;br/&gt;
 0   mongod                              0x0013ada8 _ZN5mongo10abruptQuitEi + 1448&lt;br/&gt;
 1   libSystem.B.dylib                   0x965622bb _sigtramp + 43&lt;br/&gt;
 2   ???                                 0xffffffff 0x0 + 4294967295&lt;br/&gt;
 3   mongod                              0x0003ed26 _ZN5mongo8Listener6listenEv + 134&lt;br/&gt;
 4   mongod                              0x0013876b _ZN5mongo6listenEi + 699&lt;br/&gt;
 5   mongod                              0x0013d012 _ZN5mongo14_initAndListenEiPKc + 1282&lt;br/&gt;
 6   mongod                              0x0013d6b4 _ZN5mongo13initAndListenEiPKc + 36&lt;br/&gt;
 7   mongod                              0x00143e3c main + 26364&lt;br/&gt;
 8   mongod                              0x00002216 start + 54&lt;br/&gt;
Thu Sep  3 14:07:39  dbexit: &lt;br/&gt;
Thu Sep  3 14:07:39    closeAllFiles() finished&lt;br/&gt;
Thu Sep  3 14:07:39  dbexit: really exiting now&lt;br/&gt;
Abort trap&lt;/p&gt;</description>
                <environment></environment>
        <key id="10548">SERVER-277</key>
            <summary>Helpful error message when trying to eval something which isn&apos;t code</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="sandstrom">sandstrom</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Sep 2009 08:11:08 +0000</created>
                <updated>Tue, 12 Jul 2016 00:27:31 +0000</updated>
                            <resolved>Mon, 7 Sep 2009 22:54:25 +0000</resolved>
                                                    <fixVersion>1.1.0</fixVersion>
                                    <component>JavaScript</component>
                    <component>Shell</component>
                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="10749" author="eliot" created="Tue, 15 Sep 2009 14:59:15 +0000"  >&lt;p&gt;released in 1.1.0&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 15 Sep 2009 14:59:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 23 weeks, 1 day 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>
                            14 years, 23 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>sandstrom</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpw6n:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>23744</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_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|ht0l8f:</customfieldvalue>

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