Bug 1052012 - odd number quotes ahead could be imported
Summary: odd number quotes ahead could be imported
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Beaker
Classification: Retired
Component: web UI
Version: develop
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-13 06:18 UTC by wangjing
Modified: 2018-02-06 00:41 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-16 06:40:47 UTC
Embargoed:


Attachments (Terms of Use)

Description wangjing 2014-01-13 06:18:18 UTC
Description of problem:
odd number quotes ahead(like """test"") could be imported, but they are not invalid, odd number quotes behind(like ""test""") can't be imported in current release.

Version-Release number of selected component (if applicable):
Version 0.15.2

How reproducible:
always

Steps to Reproduce:
1. set an CSV file, field value like: "wj test,"""csv""" ""wjabc"""""
2. import the CSV file via web(Admin->Import)
3. check the importing results.

Actual results:
importing field value: "wj test,"""csv""" ""wjabc"""""  passed, and result is: wj test,"csv""" ""wjabc"""""


Expected results:
odd number quotes ahead(like """csv""") cannot be imported, since they are invalid

Additional info:

Comment 2 Nick Coghlan 2014-01-16 06:40:47 UTC
The default dialect used in the Python csv module includes a number of features to work around common bugs in software that produces CSV files. Beaker then inherits that behaviour, since we just pass the files to the csv module for processing.

It can be a little quirky at times, but "a little quirky" is a reasonable description of CSV formats in general :)


Note You need to log in before you can comment on or make changes to this bug.