<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54:52 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-682] mongoimport in csv mode/type seems to have problems with whitespaces in column values</title>
                <link>https://jira.mongodb.org/browse/SERVER-682</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When given a csv file (att: recordshelf-genres.csv) and imported via &apos;mongoimport -d recordshelf -c genres --file recordshelf-genres.csv --drop -f name --type csv --headerline --ignoreBlanks&apos; the imported collection looks (is) incorrect possible due to whitespace issues in the column value &apos;Drum and Bass&apos;. See next snippet from mongo shell showing the corrupted data.&lt;/p&gt;

&lt;p&gt;db.genres.find()&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4b886702982b57076c82e282&quot;), &quot;name&quot; : &quot;Drum and Bass&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4b886702982b57076c82e283&quot;), &quot;name&quot; : &quot;Rap&quot;, &quot;field1&quot; : &quot;and Bass\&quot;&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4b886702982b57076c82e284&quot;), &quot;name&quot; : &quot;House&quot;, &quot;field1&quot; : &quot;d Bass\&quot;&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4b886702982b57076c82e285&quot;), &quot;name&quot; : &quot;Reggae&quot;, &quot;field1&quot; : &quot;Bass\&quot;&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4b886702982b57076c82e286&quot;), &quot;name&quot; : &quot;Dubstep&quot;, &quot;field1&quot; : &quot;Bass\&quot;&quot; }

&lt;p&gt;When column value &apos;Drum and Bass&apos; get replaced (att: recordshelf-genres-jazzed.csv) with e.g. Jazz the csv mongoimport (same call as above with modified import csv) works as expected as shown in the next mongo shell excerpt.&lt;/p&gt;

&lt;p&gt;db.genres.find()&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4b886860982b57076c82e287&quot;), &quot;name&quot; : &quot;Jazz&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4b886860982b57076c82e288&quot;), &quot;name&quot; : &quot;Rap&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4b886860982b57076c82e289&quot;), &quot;name&quot; : &quot;House&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4b886860982b57076c82e28a&quot;), &quot;name&quot; : &quot;Reggae&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4b886860982b57076c82e28b&quot;), &quot;name&quot; : &quot;Dubstep&quot; }

&lt;p&gt;Looks like a bug to me, but maybe I&apos;m just to tired for seeing a trivial solution for this issue or I&apos;m issuing mongoimport in a false way. If that&apos;s the case sorry for opening this issue ;D&lt;/p&gt;</description>
                <environment>Mac OSX 10.6.2, MongoDB installed via Macport</environment>
        <key id="11389">SERVER-682</key>
            <summary>mongoimport in csv mode/type seems to have problems with whitespaces in column values</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="raphaelstolt">Raphael Stolt</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Feb 2010 19:42:36 +0000</created>
                <updated>Tue, 12 Jul 2016 00:27:43 +0000</updated>
                            <resolved>Sat, 27 Feb 2010 23:06:10 +0000</resolved>
                                    <version>1.2.1</version>
                                    <fixVersion>1.3.3</fixVersion>
                                    <component>Tools</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="12610" author="eliot" created="Sat, 27 Feb 2010 23:06:10 +0000"  >&lt;p&gt;was a problem with &quot; parsing when it was the last (or only) field&lt;/p&gt;</comment>
                            <comment id="12609" author="auto" created="Sat, 27 Feb 2010 23:05:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: fix for csv import where last field has &quot; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-682&quot; title=&quot;mongoimport in csv mode/type seems to have problems with whitespaces in column values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-682&quot;&gt;&lt;del&gt;SERVER-682&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/00ca5d90fe11b3e3fa6c3651542113736adddcf1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/00ca5d90fe11b3e3fa6c3651542113736adddcf1&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10156" name="recordshelf-genres-jazzed.csv" size="45" author="raphaelstolt" created="Fri, 26 Feb 2010 19:42:36 +0000"/>
                            <attachment id="10155" name="recordshelf-genres.csv" size="54" author="raphaelstolt" created="Fri, 26 Feb 2010 19:42:36 +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>Sat, 27 Feb 2010 23:05:57 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 51 weeks, 4 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>
                            13 years, 51 weeks, 4 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>raphaelstolt</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrprcv:</customfieldvalue>

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

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

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