<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:47 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-2379] mongoimport + csv with commas in values: extraneous data</title>
                <link>https://jira.mongodb.org/browse/SERVER-2379</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;$ cat blah.csv&lt;br/&gt;
name,location&lt;br/&gt;
&quot;Bob&quot;,&quot;Somewhere, Out There&quot;&lt;br/&gt;
&quot;Chris&quot;,&quot;Right here&quot;&lt;br/&gt;
$ mongoimport -h localhost -d testing -c testing --headerline -type csv --file blah.csv &lt;br/&gt;
connected to: localhost&lt;br/&gt;
imported 3 objects&lt;br/&gt;
$ mongo testing&lt;br/&gt;
MongoDB shell version: 1.6.5&lt;br/&gt;
connecting to: testing&lt;br/&gt;
&amp;gt; db.testing.find()&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4d372b87a0a15c6c1ae2f8ea&quot;), &quot;name&quot; : &quot;Bob&quot;, &quot;location&quot; : &quot;Somewhere, Out There&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4d372b87a0a15c6c1ae2f8eb&quot;), &quot;name&quot; : &quot;Chris&quot;, &quot;location&quot; : &quot;Right here&quot;, &quot;field2&quot; : &quot; There\&quot;&quot; }



&lt;p&gt;note garbage &quot;field2&quot; field/value in second record, coming somehow from value with a comma in first record&lt;/p&gt;</description>
                <environment>10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386</environment>
        <key id="14255">SERVER-2379</key>
            <summary>mongoimport + csv with commas in values: extraneous data</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="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="cgill">Chris Gill</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Jan 2011 18:22:56 +0000</created>
                <updated>Tue, 12 Jul 2016 00:20:11 +0000</updated>
                            <resolved>Tue, 16 Aug 2011 17:02:33 +0000</resolved>
                                    <version>1.6.5</version>
                                    <fixVersion>1.9.2</fixVersion>
                                    <component>Tools</component>
                                        <votes>1</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="48844" author="spencer" created="Tue, 16 Aug 2011 16:24:07 +0000"  >&lt;p&gt;This code was majorly reworked in fixing &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1097&quot; title=&quot;mongoimport / export should adhere to CSV spec&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1097&quot;&gt;&lt;del&gt;SERVER-1097&lt;/del&gt;&lt;/a&gt;, and I suspect that this bug was fixed in the process.&lt;br/&gt;
Can you test this again with the 1.9.2 release that just went out and see if the problem persists?&lt;/p&gt;</comment>
                            <comment id="40661" author="sidnicious" created="Tue, 5 Jul 2011 17:56:00 +0000"  >&lt;p&gt;Pull request: &lt;a href=&quot;https://github.com/mongodb/mongo/pull/30&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/30&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="24388" author="lance.lovette" created="Mon, 21 Feb 2011 21:44:22 +0000"  >&lt;p&gt;I just tested the nightly build (mongodb-linux-i686-2011-02-21) and the issue persists.&lt;/p&gt;</comment>
                            <comment id="24387" author="lance.lovette" created="Mon, 21 Feb 2011 21:30:23 +0000"  >&lt;p&gt;I&apos;m on CentOS 5.5 with mongod 1.6.5 (from RPM) and have this same issue. Text from longer records is carried over into a bogus field in future records.&lt;/p&gt;

&lt;p&gt;$ cat blah.csv&lt;br/&gt;
1,&quot;This is a long sentence&quot;&lt;br/&gt;
2,&quot;My name is Joe&quot;&lt;br/&gt;
3,&quot;I like chicken&quot;&lt;br/&gt;
4,&quot;It is hot outside&quot;&lt;/p&gt;

&lt;p&gt;$ mongoimport --db blah -c blah --file blah.csv --fields a,b --type csv --drop -vvv&lt;br/&gt;
Mon Feb 21 21:22:46 creating new connection to:127.0.0.1&lt;br/&gt;
connected to: 127.0.0.1&lt;br/&gt;
Mon Feb 21 21:22:46 ns: blah.blah&lt;br/&gt;
dropping: blah.blah&lt;br/&gt;
Mon Feb 21 21:22:46 filesize: 95&lt;br/&gt;
Mon Feb 21 21:22:46 got line:1,&quot;This is a really long sentence&quot;&lt;br/&gt;
Mon Feb 21 21:22:46 got line:2,&quot;My name is Joe&quot;&lt;br/&gt;
Mon Feb 21 21:22:46 got line:3,&quot;I like chicken&quot;&lt;br/&gt;
Mon Feb 21 21:22:46 got line:4,&quot;It is hot outside&quot;&lt;br/&gt;
Mon Feb 21 21:22:46 got line:&lt;br/&gt;
imported 4 objects&lt;/p&gt;

&lt;p&gt;$ mongo blah&lt;br/&gt;
MongoDB shell version: 1.6.5&lt;br/&gt;
connecting to: blah&lt;br/&gt;
&amp;gt; db.blah.find()&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4d62d7a676a8a7bc0085ba5a&quot;), &quot;a&quot; : 1, &quot;b&quot; : &quot;This is a really long sentence&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4d62d7a676a8a7bc0085ba5b&quot;), &quot;a&quot; : 2, &quot;b&quot; : &quot;My name is Joe&quot;, &quot;field2&quot; : &quot; long sentence\&quot;&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4d62d7a676a8a7bc0085ba5c&quot;), &quot;a&quot; : 3, &quot;b&quot; : &quot;I like chicken&quot;, &quot;field2&quot; : &quot; long sentence\&quot;&quot; }
{ &quot;_id&quot; : ObjectId(&quot;4d62d7a676a8a7bc0085ba5d&quot;), &quot;a&quot; : 4, &quot;b&quot; : &quot;It is hot outside&quot;, &quot;field2&quot; : &quot;ng sentence\&quot;&quot; }

&lt;p&gt;The import is correct if I remove the quotes altogether, or replace the comma with a TAB (although that includes the quotes in the field value).&lt;/p&gt;</comment>
                            <comment id="22738" author="guanqun" created="Thu, 27 Jan 2011 13:55:11 +0000"  >&lt;p&gt;I tried on my mac osx with latest source, no such problem found...&lt;/p&gt;</comment>
                            <comment id="22510" author="cgill" created="Wed, 19 Jan 2011 18:26:22 +0000"  >&lt;p&gt;sorry that name is not very specific, i can&apos;t seem to change it.  should be more like &quot;mongoimport for csv with commas in values results in extraneous data during import&quot;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="11926">SERVER-1097</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 27 Jan 2011 13:55:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 27 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, 27 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>cgill</customfieldvalue>
            <customfieldvalue>guanqun</customfieldvalue>
            <customfieldvalue>lance.lovette</customfieldvalue>
            <customfieldvalue>sidnicious</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp8af:</customfieldvalue>

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

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

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