[
https://issues.apache.org/jira/browse/METAMODEL-237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15183861#comment-15183861
]
Kasper Sørensen commented on METAMODEL-237:
-------------------------------------------
A bit of feedback from a bit of investigation I did:
I was able to reproduce this easily in a unittest using the CSV data that
you've provided.
The issue seems to originate from opencsv which we use for the basic CSV
parsing.
In opencsv's CSVParser class it even says in the code comments that it's
supposed to work:
{code}
// the tricky case of an embedded quote in the middle: a,bc"d"ef,g
{code}
But unfortunately that only seems to work when there are an even amount of
quotes. Very strange implementation IMO, but maybe it's intentional.
I tried it with both our current opencsv dependency, but also the latest
version (which uses a new (com.opencsv) namespace). Same issue.
Maybe we should address the issue to the opencsv guys and see what they think?
> Csv parsing failure
> -------------------
>
> Key: METAMODEL-237
> URL: https://issues.apache.org/jira/browse/METAMODEL-237
> Project: Apache MetaModel
> Issue Type: Bug
> Reporter: Claudia Pesu
> Priority: Minor
> Attachments: screenshot-1.png
>
>
> I have a file with the following data:
> ```
> code;code2
> BEAM 12;my beam 23" maria
> beam;ana 23"
> beam;Length 26"
> ```
> The CsvConfiguration configuration is registered with
> CsvConfiguration.DEFAULT_QUOTE_CHAR (")
> Actual Behavior: Metamodel doesn't successfully parse the file
> The result of reading this file is shown in the image attached
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)