woollights / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

CSV parsing fails when last field is quoted #438

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a CSV file containing a single row with a single quoted field
2. Load it from Exhibit

What is the expected output? What do you see instead?
One record should be shown. Instead, parsing fails with the message "TypeError: 
Cannot read property 'length' of undefined" (in Chrome)

What version of the product are you using? On what browser and what
operating system?
Exhibit trunk.
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) 
Chrome/11.0.696.65 Safari/534.24

Please provide any additional information below.
I've traced the problem to lines 173-178 of tsv-csv-importer.js. The inner loop 
increments j past the end of the array it indexes.

Original issue reported on code.google.com by punya.bi...@gmail.com on 19 May 2011 at 7:27

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 10:25

GoogleCodeExporter commented 8 years ago

Original comment by david.ka...@gmail.com on 27 Dec 2011 at 9:06