<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:23:40 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-30393] MongoDB is accepting duplicate elements within the same level</title>
                <link>https://jira.mongodb.org/browse/SERVER-30393</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;MongoDB is found to accept duplicate elements within the same level inside a document.&lt;br/&gt;
The issue is faced when inserting record into MongoDB from R 3.3.2 using rmongodb library.&lt;/p&gt;

&lt;p&gt;The severity of this issue is that Mongodb didn&apos;t complain about it at all.&lt;br/&gt;
When trying to view the document inside Mongochef Studio 3T, you can&apos;t actually see the duplicate, instead you only see one element.&lt;/p&gt;

&lt;p&gt;However, when trying to query it using C# driver and looping through the code generates an error complaining about a duplicate element.&lt;/p&gt;

&lt;p&gt;When trying to view the document using Mongo Shell you can&apos;t see the duplicate either and you just see one element.&lt;/p&gt;

&lt;p&gt;So basically you have duplicate inside your documents but you can&apos;t see it and you are not aware of it until you interrogate it using C# driver.&lt;/p&gt;

&lt;p&gt;I hope this explains it, and I&apos;m happy to answer any questions.&lt;/p&gt;</description>
                <environment></environment>
        <key id="409532">SERVER-30393</key>
            <summary>MongoDB is accepting duplicate elements within the same level</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="yousefbasel">Basel Yousef</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Jul 2017 10:36:48 +0000</created>
                <updated>Mon, 31 Jul 2017 15:53:07 +0000</updated>
                            <resolved>Fri, 28 Jul 2017 17:26:43 +0000</resolved>
                                                                    <component>Write Ops</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1636403" author="thomas.schubert" created="Mon, 31 Jul 2017 15:53:07 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=yousefbasel&quot; class=&quot;user-hover&quot; rel=&quot;yousefbasel&quot;&gt;yousefbasel&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Since this is an ongoing open issue, the specific version that is does not indicate that this issue is unique. MongoDB currently relies on the client/driver to provide documents that do not contain duplicate fields at the same level. JSON standards do not specify the correct behavior when there are duplicate fields, and consequently recommend that users ensure field names are unique. For more details, see &lt;a href=&quot;https://tools.ietf.org/html/rfc7159#section-4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://tools.ietf.org/html/rfc7159#section-4&lt;/a&gt; and &lt;a href=&quot;http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As a result of this ambiguity, different drivers may behave behave differently and allow the insertion of duplicate field names at the same level. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6439&quot; title=&quot;Duplicate fields at the same level should not be allowed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6439&quot;&gt;SERVER-6439&lt;/a&gt; moves the responsibility to the MongoDB Server from the client/drivers to ensure that the documents contain only unique field names.&lt;/p&gt;

&lt;p&gt;Hope this helps to clarify,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1635974" author="yousefbasel" created="Mon, 31 Jul 2017 08:21:32 +0000"  >&lt;p&gt;Thanks for your reply &lt;span class=&quot;error&quot;&gt;&amp;#91;Roman Fernandez&amp;#93;&lt;/span&gt;&lt;br/&gt;
This is not a duplicate since it is a different issue from the ticket you mentioned, this issue is reported on a server running 3.2.9 version of Mongodb.&lt;br/&gt;
This is why I mentioned that it only happens when being inserted from R.&lt;/p&gt;

&lt;p&gt;I hope this makes sense, please let me know if you need more information.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Basel&lt;/p&gt;</comment>
                            <comment id="1634745" author="ramon.fernandez" created="Fri, 28 Jul 2017 17:26:34 +0000"  >&lt;p&gt;Thanks for your report &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=yousefbasel&quot; class=&quot;user-hover&quot; rel=&quot;yousefbasel&quot;&gt;yousefbasel&lt;/a&gt;; there&apos;s an existing ticket (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6439&quot; title=&quot;Duplicate fields at the same level should not be allowed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6439&quot;&gt;SERVER-6439&lt;/a&gt;) to address this behavior, so I&apos;m going to close this ticket as a duplicate. Feel free to vote for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6439&quot; title=&quot;Duplicate fields at the same level should not be allowed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6439&quot;&gt;SERVER-6439&lt;/a&gt; and watch it for updates.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="44118">SERVER-6439</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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>Fri, 28 Jul 2017 13:55:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 28 weeks, 2 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>kelsey.schubert@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 28 weeks, 2 days ago
                        </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>yousefbasel</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htbuev:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Create a list in R and try to append it to itself then insert the record into Mongo&lt;/p&gt;</customfieldvalue>

                        </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|htbghj:</customfieldvalue>

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