<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:41:17 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>[COMPASS-5937] Compass import inserts unexplained null values and nested arrays</title>
                <link>https://jira.mongodb.org/browse/COMPASS-5937</link>
                <project id="13182" key="COMPASS">Compass </project>
                    <description>&lt;h3&gt;&lt;a name=&quot;ProblemStatement%2FRationale&quot;&gt;&lt;/a&gt;&lt;b&gt;Problem Statement/Rationale&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;When I used the import tool to import a json file. in some fields the import automatically adds multiple nulls as values to the fields that did not exist in the original file, and adds the actual data in another nested array.&#160;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Please be sure to attach relevant logs &lt;em&gt;with any sensitive data redacted&lt;/em&gt;.&lt;/b&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;StepstoReproduce&quot;&gt;&lt;/a&gt;&lt;b&gt;Steps to Reproduce&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;It seems that this happens when the name if the field contains a number, example:&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;br/&gt;
&quot;PCIDSS v3.2&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;12.1&amp;quot;,&amp;quot;12.1.1&amp;quot;&amp;#93;&lt;/span&gt;,&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ExpectedResults&quot;&gt;&lt;/a&gt;&lt;b&gt;Expected Results&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;expected&lt;/font&gt;&lt;font color=&quot;#505f79&quot;&gt;&#160;document in database:&lt;/font&gt;&lt;br/&gt;
PCIDSS v3: Array&lt;br/&gt;
0: &quot;12.1&quot;&lt;br/&gt;
1: &quot;12.1.1&quot;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ActualResults&quot;&gt;&lt;/a&gt;&lt;b&gt;Actual Results&lt;/b&gt;&lt;/h3&gt;
&lt;p&gt;&#160;&lt;br/&gt;
PCIDSS v3: Array&lt;br/&gt;
0: null&lt;br/&gt;
1: null&lt;br/&gt;
2: Array&lt;br/&gt;
&#160; &#160; 0: &quot;12.1&quot;&lt;br/&gt;
&#160; &#160; 1: &quot;12.1.1&quot;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;AdditionalNotes&quot;&gt;&lt;/a&gt;&lt;b&gt;Additional Notes&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;I removed the number from the field name and the nulls / nested array went away. Another example in screenshots.&lt;/font&gt;&lt;/p&gt;</description>
                <environment>Compass  json file import tool</environment>
        <key id="2084485">COMPASS-5937</key>
            <summary>Compass import inserts unexplained null values and nested arrays</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="13203">Gone away</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="mosabama@gmail.com">Sam Al Shami</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Jul 2022 07:54:19 +0000</created>
                <updated>Fri, 27 Oct 2023 20:18:43 +0000</updated>
                            <resolved>Tue, 18 Oct 2022 09:36:42 +0000</resolved>
                                    <version>1.32.2</version>
                                    <fixVersion>No version</fixVersion>
                                    <component>Import/Export</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4674395" author="rhys.howell" created="Tue, 12 Jul 2022 17:49:10 +0000"  >&lt;p&gt;Still reproducible on 1.33.1.&lt;br/&gt;
Import json to reproduce:&lt;br/&gt;
[&lt;/p&gt;
{
  &quot;_id&quot;: 2,
  &quot;PCIDSS v3.2&quot;: [&quot;12.1&quot;,&quot;12.1.1&quot;]
}
&lt;p&gt;]&lt;/p&gt;</comment>
                            <comment id="4665356" author="JIRAUSER1270137" created="Fri, 8 Jul 2022 05:42:29 +0000"  >&lt;p&gt;Just fount out thwn this happens, the import tool cuts the number from the field name and uses it. see screenshots&lt;/p&gt;</comment>
                            <comment id="4662408" author="JIRAUSER1270137" created="Thu, 7 Jul 2022 07:56:23 +0000"  >&lt;p&gt;In some of the instances, there would be no nulls, but the nested array would be there, The import tool does not show any errors or warnings.&#160;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="408872" name="Screenshot 2022-10-18 at 10.34.59.png" size="23139" author="leroux.bodenstein@mongodb.com" created="Tue, 18 Oct 2022 09:35:09 +0000"/>
                            <attachment id="388922" name="Screenshot from 2022-07-06 23-35-47.png" size="28681" author="mosabama@gmail.com" created="Thu, 7 Jul 2022 07:53:50 +0000"/>
                            <attachment id="388923" name="Screenshot from 2022-07-06 23-36-30.png" size="37220" author="mosabama@gmail.com" created="Thu, 7 Jul 2022 07:53:50 +0000"/>
                    </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>Tue, 12 Jul 2022 17:49:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 30 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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 30 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>rhys.howell@mongodb.com</customfieldvalue>
            <customfieldvalue>mosabama@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i11bgn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0k5j4:</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i10xlz:</customfieldvalue>

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