<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:13 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-4186] db.collection.save() with documents that contain functions doubling up function names</title>
                <link>https://jira.mongodb.org/browse/SERVER-4186</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I suppose this pretty much should speak for its self. At first I thought just the internal function name doubled up, but the custom name would remain when __toString() is called in php. But what it does is take the full internal function name, then re-assign a prefix to it, returning the entire pre-update name as the new function name. Attached is a screenshot, before and after the update I&apos;ve pasted below.&lt;/p&gt;

&lt;p&gt;&amp;gt; a = db.validation.findOne(&lt;/p&gt;
{name:&apos;cellPhone&apos;}
&lt;p&gt;)&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;4eadb65ba653908619848869&quot;),&lt;br/&gt;
        &quot;name&quot; : &quot;cellPhone&quot;,&lt;br/&gt;
        &quot;error&quot; : &quot;At least one phone number must be entered&quot;,&lt;br/&gt;
        &quot;code&quot; : function cf_&lt;em&gt;31&lt;/em&gt;_f_cf_&lt;em&gt;28&lt;/em&gt;&lt;em&gt;f&lt;/em&gt;() {},&lt;br/&gt;
        &quot;errorGroup&quot; : &quot;cellPhone&quot;&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; a.errorGroup = &apos;phone&apos;&lt;br/&gt;
phone&lt;br/&gt;
&amp;gt; db.validation.save(a)&lt;br/&gt;
&amp;gt; a = db.validation.findOne(&lt;/p&gt;
{name:&apos;cellPhone&apos;}
&lt;p&gt;)&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;4eadb65ba653908619848869&quot;),&lt;br/&gt;
        &quot;name&quot; : &quot;cellPhone&quot;,&lt;br/&gt;
        &quot;error&quot; : &quot;At least one phone number must be entered&quot;,&lt;br/&gt;
        &quot;code&quot; : function cf_&lt;em&gt;32&lt;/em&gt;_f_cf_&lt;em&gt;31&lt;/em&gt;_f_cf_&lt;em&gt;28&lt;/em&gt;&lt;em&gt;f&lt;/em&gt;() {&lt;br/&gt;
},&lt;br/&gt;
        &quot;errorGroup&quot; : &quot;phone&quot;&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; a.code = function code(a){}&lt;br/&gt;
function code(a) {&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; db.validation.save(a)&lt;br/&gt;
&amp;gt; a = db.validation.findOne(&lt;/p&gt;
{name:&apos;cellPhone&apos;}
&lt;p&gt;)&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;4eadb65ba653908619848869&quot;),&lt;br/&gt;
        &quot;name&quot; : &quot;cellPhone&quot;,&lt;br/&gt;
        &quot;error&quot; : &quot;At least one phone number must be entered&quot;,&lt;br/&gt;
        &quot;code&quot; : function cf_&lt;em&gt;33&lt;/em&gt;_f_code(a) {},&lt;br/&gt;
        &quot;errorGroup&quot; : &quot;phone&quot;&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; a.errorGroup = &apos;phone1&apos;&lt;br/&gt;
phone1&lt;br/&gt;
&amp;gt; db.validation.save(a)&lt;br/&gt;
&amp;gt; a = db.validation.findOne(&lt;/p&gt;
{name:&apos;cellPhone&apos;}
&lt;p&gt;)&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;4eadb65ba653908619848869&quot;),&lt;br/&gt;
        &quot;name&quot; : &quot;cellPhone&quot;,&lt;br/&gt;
        &quot;error&quot; : &quot;At least one phone number must be entered&quot;,&lt;br/&gt;
        &quot;code&quot; : function cf_&lt;em&gt;34&lt;/em&gt;_f_cf_&lt;em&gt;33&lt;/em&gt;_f_code(a) {},&lt;br/&gt;
        &quot;errorGroup&quot; : &quot;phone1&quot;&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; b = db.validation.findOne(&lt;/p&gt;
{name:&apos;businessPhone&apos;}
&lt;p&gt;)&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;4eb0036aa65390861984886a&quot;),&lt;br/&gt;
        &quot;name&quot; : &quot;businessPhone&quot;,&lt;br/&gt;
        &quot;error&quot; : &quot;At least one phone number must be entered&quot;,&lt;br/&gt;
        &quot;code&quot; : function cf_&lt;em&gt;35&lt;/em&gt;_f_cf_&lt;em&gt;30&lt;/em&gt;_f_cf_&lt;em&gt;28&lt;/em&gt;&lt;em&gt;f&lt;/em&gt;() {},&lt;br/&gt;
        &quot;errorGroup&quot; : &quot;phone&quot;&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; b.run = function(a){}&lt;br/&gt;
function (a) {&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; db.validation.save(b)&lt;br/&gt;
&amp;gt; b = db.validation.findOne(&lt;/p&gt;
{name:&apos;businessPhone&apos;}
&lt;p&gt;)&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;4eb0036aa65390861984886a&quot;),&lt;br/&gt;
        &quot;name&quot; : &quot;businessPhone&quot;,&lt;br/&gt;
        &quot;error&quot; : &quot;At least one phone number must be entered&quot;,&lt;br/&gt;
        &quot;code&quot; : function cf_&lt;em&gt;36&lt;/em&gt;_f_cf_&lt;em&gt;35&lt;/em&gt;_f_cf_&lt;em&gt;30&lt;/em&gt;_f_cf_&lt;em&gt;28&lt;/em&gt;&lt;em&gt;f&lt;/em&gt;() {},&lt;br/&gt;
        &quot;errorGroup&quot; : &quot;phone&quot;,&lt;br/&gt;
        &quot;run&quot; : function cf_&lt;em&gt;37&lt;/em&gt;&lt;em&gt;f&lt;/em&gt;(a) {&lt;br/&gt;
}&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; delete b.run&lt;br/&gt;
true&lt;br/&gt;
&amp;gt; db.validation.save(b)&lt;br/&gt;
&amp;gt; b = db.validation.findOne(&lt;/p&gt;
{name:&apos;businessPhone&apos;}
&lt;p&gt;)&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;4eb0036aa65390861984886a&quot;),&lt;br/&gt;
        &quot;name&quot; : &quot;businessPhone&quot;,&lt;br/&gt;
        &quot;error&quot; : &quot;At least one phone number must be entered&quot;,&lt;br/&gt;
        &quot;code&quot; : function cf_&lt;em&gt;38&lt;/em&gt;_f_cf_&lt;em&gt;36&lt;/em&gt;_f_cf_&lt;em&gt;35&lt;/em&gt;_f_cf_&lt;em&gt;30&lt;/em&gt;_f_cf_&lt;em&gt;28&lt;/em&gt;&lt;em&gt;f&lt;/em&gt;() {},&lt;br/&gt;
        &quot;errorGroup&quot; : &quot;phone&quot;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>Win 7 64 bit, Mongo 2.0</environment>
        <key id="24336">SERVER-4186</key>
            <summary>db.collection.save() with documents that contain functions doubling up function names</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="brandon">Brandon Diamond</assignee>
                                    <reporter username="kavisiegel">Kavi Siegel</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Nov 2011 15:10:38 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:20 +0000</updated>
                            <resolved>Tue, 8 Nov 2011 22:51:24 +0000</resolved>
                                                                    <component>JavaScript</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="65567" author="brandon" created="Tue, 8 Nov 2011 22:52:22 +0000"  >&lt;p&gt;I&apos;ve implemented a simple fix to resolve this issue. A more comprehensive fix will come when we finish transitioning from spidermonkey to v8.&lt;/p&gt;</comment>
                            <comment id="65564" author="auto" created="Tue, 8 Nov 2011 22:46:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4186&quot; title=&quot;db.collection.save() with documents that contain functions doubling up function names&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4186&quot;&gt;&lt;del&gt;SERVER-4186&lt;/del&gt;&lt;/a&gt;: Don&apos;t re-munge function names&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/dc82da899b71a77e70e57e66e7f306999e3689e1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/dc82da899b71a77e70e57e66e7f306999e3689e1&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13681" name="mongodbbug.png" size="40676" author="kavisiegel" created="Tue, 1 Nov 2011 15:10:38 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 8 Nov 2011 16:41:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 15 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>
                            12 years, 15 weeks, 1 day 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>auto</customfieldvalue>
            <customfieldvalue>brandon</customfieldvalue>
            <customfieldvalue>kavisiegel</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hromr3:</customfieldvalue>

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

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

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