<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:05 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-2751] Many JS types crash shell if &quot;new&quot; is omitted</title>
                <link>https://jira.mongodb.org/browse/SERVER-2751</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&amp;gt; BinData(3,&quot;550e8400e29b41d4a716446655440000&quot;)&lt;br/&gt;
Assertion failure: OBJ_GET_CLASS(cx, obj)-&amp;gt;flags &amp;amp; JSCLASS_HAS_PRIVATE, at jsapi.c:2303&lt;br/&gt;
Trace/BPT trap&lt;br/&gt;
&amp;gt; BinData(3,&quot;1243&quot;)&lt;br/&gt;
Assertion failure: OBJ_GET_CLASS(cx, obj)-&amp;gt;flags &amp;amp; JSCLASS_HAS_PRIVATE, at jsapi.c:2303&lt;br/&gt;
Trace/BPT trap&lt;/p&gt;


&lt;p&gt;Even when it doesn&apos;t crash it doesn&apos;t work:&lt;/p&gt;

&lt;p&gt;&amp;gt; BinData(0, &quot;22&quot;)    &lt;br/&gt;
Sun Mar 13 09:43:57 Error: BinData could not decode base64 parameter (shell):1&lt;/p&gt;</description>
                <environment></environment>
        <key id="15104">SERVER-2751</key>
            <summary>Many JS types crash shell if &quot;new&quot; is omitted</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="antoine">Antoine Girbal</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                    </labels>
                <created>Sun, 13 Mar 2011 16:46:25 +0000</created>
                <updated>Tue, 12 Jul 2016 00:18:46 +0000</updated>
                            <resolved>Fri, 7 Oct 2011 08:07:20 +0000</resolved>
                                    <version>1.8.0-rc1</version>
                    <version>1.8.0-rc2</version>
                                    <fixVersion>2.1.0</fixVersion>
                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="59051" author="auto" created="Fri, 7 Oct 2011 08:05:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2751&quot; title=&quot;Many JS types crash shell if &amp;quot;new&amp;quot; is omitted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2751&quot;&gt;&lt;del&gt;SERVER-2751&lt;/del&gt;&lt;/a&gt;: fixed for SM too. Also fixed test typo.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5810ac31bda6588dd2651eecac8bce48c907a827&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5810ac31bda6588dd2651eecac8bce48c907a827&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59049" author="auto" created="Fri, 7 Oct 2011 07:35:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2751&quot; title=&quot;Many JS types crash shell if &amp;quot;new&amp;quot; is omitted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2751&quot;&gt;&lt;del&gt;SERVER-2751&lt;/del&gt;&lt;/a&gt;: BinData Asserts and crashes shell&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e03ce18ac0ddce659e808256bedcbb4acd8fb080&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e03ce18ac0ddce659e808256bedcbb4acd8fb080&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59048" author="antoine" created="Fri, 7 Oct 2011 07:33:02 +0000"  >&lt;p&gt;In v8 almost all types would crash shell if &quot;new&quot; was omitted.&lt;br/&gt;
Some had a condition to create &quot;this&quot; but it was not done correctly.&lt;br/&gt;
Added a test for all types.&lt;/p&gt;</comment>
                            <comment id="30163" author="antoine" created="Thu, 28 Apr 2011 18:17:49 +0000"  >&lt;p&gt;was just testing this, it seems with master code it now works fine without the &quot;new&quot;, so someone must have fixed it.&lt;br/&gt;
In general we should probably make sure we dont require the &quot;new&quot; for object creation, because it&apos;s annoying to type and many js users are used to omitting it.&lt;br/&gt;
The risk is if we dont support it but then we fail silently after modifying the wrong object..&lt;br/&gt;
Since we need to check that object is correct we might as well create the correct one if needed.&lt;/p&gt;</comment>
                            <comment id="30128" author="rstam" created="Thu, 28 Apr 2011 16:24:24 +0000"  >&lt;p&gt;My interest in whether new is required or not is that I want the C# driver to output JSON that can be pasted into the shell and used without errors (but only when output mode is JsonOutputMode.Shell).&lt;/p&gt;

&lt;p&gt;If we aren&apos;t going to support BinData without &quot;new&quot; then I need to output JSON that includes the &quot;new&quot; for BinData.&lt;/p&gt;</comment>
                            <comment id="26354" author="eliot" created="Mon, 21 Mar 2011 00:55:40 +0000"  >&lt;p&gt;Support for non-new is a bug imo.&lt;br/&gt;
When creating an object, you should use new.&lt;br/&gt;
But if you forget it, the error message should be clear (and not crash)&lt;/p&gt;</comment>
                            <comment id="26350" author="scotthernandez" created="Sun, 20 Mar 2011 15:18:33 +0000"  >&lt;p&gt;Yes, it does need new to work in the last case; my mistake. &lt;/p&gt;

&lt;p&gt;We should fix both the crashing and the need for &quot;new&quot;, if possible.&lt;/p&gt;

&lt;p&gt;We support ObjectId(&quot;...&quot;) without the need for &quot;new&quot;.&lt;/p&gt;</comment>
                            <comment id="26335" author="eliot" created="Sat, 19 Mar 2011 23:31:08 +0000"  >&lt;p&gt;I think you need new&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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 19 Mar 2011 23:31:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 19 weeks, 5 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, 19 weeks, 5 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>antoine</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>robert@mongodb.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp3pb:</customfieldvalue>

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

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

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