<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:35 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-1281] Asking for bsonsize on non-BSON objects crashes shell</title>
                <link>https://jira.mongodb.org/browse/SERVER-1281</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Even though it is incorrect to ask for bson size for e.g. a cursor, doing so by accident shouldn&apos;t result in the shell crashing.&lt;/p&gt;

&lt;p&gt;Here is an example experienced today:&lt;/p&gt;

&lt;p&gt;&amp;gt; Object.bsonsize(db.mesh_heading_author_score.find(&lt;/p&gt;
{year: 2009, heading: &quot;Diabetes Mellitus, Type 2&quot;}
&lt;p&gt;))&lt;br/&gt;
Assertion failure: OBJ_GET_CLASS(cx, obj)-&amp;gt;flags &amp;amp; JSCLASS_HAS_PRIVATE, at jsapi.c:2293&lt;br/&gt;
Tue Jun 22 13:26:48  mongo got signal 6 (Aborted), stack trace: &lt;br/&gt;
Tue Jun 22 13:26:48  0x472222 0x7f9c7e37aaf0 0x7f9c7e37aa75 0x7f9c7e37e5c0 0x618d95 0x552c2c 0x4d6142 0x599eef 0x5acee9 0x59aaa6 0x557c9f 0x557be8 0x557ad1 0x4e5ace 0x475176 0x4765b6 0x7f9c7e365c4d 0x471379 &lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(_Z12quitAbruptlyi+0x3c2) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x472222&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(+0x33af0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f9c7e37aaf0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(gsignal+0x35) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f9c7e37aa75&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(abort+0x180) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f9c7e37e5c0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x618d95&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(JS_GetPrivate+0x7e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x552c2c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(&lt;em&gt;ZN5mongo13bson_get_sizeEP9JSContextP8JSObjectjPlS4&lt;/em&gt;+0x52) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4d6142&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(js_Invoke+0xe65) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x599eef&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(js_Interpret+0x11433) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5acee9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(js_Execute+0x418) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x59aaa6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(JS_EvaluateUCScriptForPrincipals+0xb5) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x557c9f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(JS_EvaluateUCScript+0x5a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x557be8&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(JS_EvaluateScript+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x557ad1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(_ZN5mongo7SMScope4execERKSsS2_bbbi+0x16e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4e5ace&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(_Z5_mainiPPc+0x1bf6) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x475176&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(main+0x26) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4765b6&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;0x7f9c7e365c4d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./development/mongodb-linux-x86_64-2010-06-02/bin/mongo(_ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl+0x61) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x471379&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>db version v1.5.3-pre-, pdfile version 4.5&lt;br/&gt;
git version: 783bf1e4d7f5f9caadf73233df59f6672b47120f&lt;br/&gt;
sys info: Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41&lt;br/&gt;
</environment>
        <key id="12227">SERVER-1281</key>
            <summary>Asking for bsonsize on non-BSON objects crashes shell</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="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="crudson">Doug Hudson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Jun 2010 14:43:29 +0000</created>
                <updated>Tue, 12 Jul 2016 00:28:43 +0000</updated>
                            <resolved>Sat, 3 Sep 2011 05:36:50 +0000</resolved>
                                    <version>1.5.3</version>
                                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="52351" author="eliot" created="Sat, 3 Sep 2011 05:36:50 +0000"  >&lt;p&gt;This was fixed a while back, sorry for not updating sooner&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>Sat, 3 Sep 2011 05:36:50 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 24 weeks, 4 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>
                            12 years, 24 weeks, 4 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="10026"><![CDATA[ALL]]></customfieldvalue>

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

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

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

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