<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:26 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-3218] when i update a object, if a key not in object it should insert a new key, but  i fact my existsing key are replaced by key</title>
                <link>https://jira.mongodb.org/browse/SERVER-3218</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&amp;gt; &lt;br/&gt;
&amp;gt; db.test.foo.remove()&lt;br/&gt;
&amp;gt; db.test.foo.insert({&quot;a&quot;:&lt;/p&gt;
{&quot;c00&quot;:1}
&lt;p&gt;, &apos;c&apos;:2})&lt;br/&gt;
&amp;gt; db.test.foo.update(&lt;/p&gt;
{&quot;c&quot;:2}
&lt;p&gt;, {&apos;$inc&apos;:{&apos;a.c000&apos;:1}})&lt;/p&gt;

&lt;p&gt;&amp;gt; db.test.foo.find(&lt;/p&gt;
{&quot;c&quot;:2}
&lt;p&gt;)&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4def5621c3ac2d33b5f4d812&quot;), &quot;a&quot; : &lt;/p&gt;
{ &quot;c000&quot; : 2 }
&lt;p&gt;, &quot;c&quot; : 2 }&lt;br/&gt;
&amp;gt; &lt;/p&gt;


&lt;p&gt;why not {&quot;a&quot;:&lt;/p&gt;
{&apos;c000&quot;:1, &apos;c00&apos;:1}
&lt;p&gt;, &apos;c&apos;:2}&lt;/p&gt;</description>
                <environment>mongodb 1.8.2</environment>
        <key id="18026">SERVER-3218</key>
            <summary>when i update a object, if a key not in object it should insert a new key, but  i fact my existsing key are replaced by key</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="gsk327@163.com">gsk</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Jun 2011 11:01:33 +0000</created>
                <updated>Tue, 12 Jul 2016 00:18:22 +0000</updated>
                            <resolved>Sun, 26 Jun 2011 04:26:33 +0000</resolved>
                                                    <fixVersion>1.9.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="74079" author="auto" created="Fri, 16 Dec 2011 23:40:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;astaple&apos;, u&apos;name&apos;: u&apos;Aaron&apos;, u&apos;email&apos;: u&apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3370&quot; title=&quot;$inc with implicit subfield creation on documents with similar keynames and hyphens corrupts document&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3370&quot;&gt;&lt;del&gt;SERVER-3370&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3218&quot; title=&quot;when i update a object, if a key not in object it should insert a new key, but  i fact my existsing key are replaced by key&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3218&quot;&gt;&lt;del&gt;SERVER-3218&lt;/del&gt;&lt;/a&gt; backport lexNumCmp fixes to 1.8&lt;br/&gt;
Branch: v1.8&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e82f9ddc53a4fe24a40f190b45dc25b7ed88ed96&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e82f9ddc53a4fe24a40f190b45dc25b7ed88ed96&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="39255" author="auto" created="Sun, 26 Jun 2011 03:26:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: fix lexNumCmp for middle 0 &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3218&quot; title=&quot;when i update a object, if a key not in object it should insert a new key, but  i fact my existsing key are replaced by key&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3218&quot;&gt;&lt;del&gt;SERVER-3218&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/800d32536ba0a47518e53d855cbfc30ee0db265c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/800d32536ba0a47518e53d855cbfc30ee0db265c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="36867" author="antoine" created="Thu, 9 Jun 2011 16:16:21 +0000"  >&lt;p&gt;bug is in goodies.h line 515.&lt;br/&gt;
Basically it&apos;s supposed to get rid of leading 0s, but it doesnt check they are actually leading..&lt;/p&gt;

&lt;p&gt;    inline int lexNumCmp( const char *s1, const char *s2 ) {&lt;br/&gt;
...&lt;br/&gt;
            bool n1 = isNumber( *s1 );&lt;br/&gt;
            bool n2 = isNumber( *s2 );&lt;/p&gt;

&lt;p&gt;            if ( n1 &amp;amp;&amp;amp; n2 ) {&lt;br/&gt;
                // get rid of leading 0s&lt;br/&gt;
                while ( *s1 == &apos;0&apos; ) s1++;&lt;br/&gt;
                while ( *s2 == &apos;0&apos; ) s2++;&lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;So any inner 0 is skipped for comparison.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="54631">SERVER-7499</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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 9 Jun 2011 15:49:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 9 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, 9 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="10022"><![CDATA[Windows]]></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>gsk327@163.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroybj:</customfieldvalue>

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

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

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