Bug 49666

Summary: CSV Header read as data after EOF
Product: JMeter - Now in Github Reporter: André Versluis <andre>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: m.turra
Priority: P2    
Version: 2.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: Proposal patch

Description André Versluis 2010-07-29 06:22:11 UTC
When a CSV Data Set Config element is defined with the variable names field empty, the first line that is read is interpreted as fields containing the variable names.
When data lines are read from this file until EOF (Recycle on EOF?: set to "true"), the first line, containing the variable names is interpreted as data. In the case where the first line is the header, this line should be skipped, reading data should start again at the second line.
Comment 1 Milamber 2010-07-30 04:47:09 UTC
Created attachment 25820 [details]
Proposal patch
Comment 2 Sebb 2010-08-16 12:41:27 UTC
Looks good; go ahead and apply the patch.
Comment 3 Milamber 2010-08-16 15:02:35 UTC
Thanks for the report; fixed in SVN:

URL: http://svn.apache.org/viewvc?rev=986094&view=rev
Log:
Bug 49666 - CSV Header read as data after EOF

Modified:
    jakarta/jmeter/trunk/src/components/org/apache/jmeter/config/CSVDataSet.java
    jakarta/jmeter/trunk/src/core/org/apache/jmeter/services/FileServer.java
    jakarta/jmeter/trunk/test/src/org/apache/jmeter/config/TestCVSDataSet.java
    jakarta/jmeter/trunk/xdocs/changes.xml
Comment 4 Matteo Turra 2013-01-08 17:29:37 UTC
*** Bug 54389 has been marked as a duplicate of this bug. ***
Comment 5 The ASF infrastructure team 2022-09-24 20:37:45 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2390