Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1052012

Summary: odd number quotes ahead could be imported
Product: [Retired] Beaker Reporter: wangjing <jingwang>
Component: web UIAssignee: beaker-dev-list
Status: CLOSED WONTFIX QA Contact: tools-bugs <tools-bugs>
Severity: low Docs Contact:
Priority: low    
Version: developCC: aigao, asaha, dcallagh, llim, qwan, rmancy
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-16 06:40:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 :)