[jira] [Created] (NUTCH-2790) CSVIndexWriter does not escape leading quotes properly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (NUTCH-2790) CSVIndexWriter does not escape leading quotes properly

Sergey Smolyakov (Jira)
Patrick Mézard created NUTCH-2790:
-------------------------------------

             Summary: CSVIndexWriter does not escape leading quotes properly
                 Key: NUTCH-2790
                 URL: https://issues.apache.org/jira/browse/NUTCH-2790
             Project: Nutch
          Issue Type: Bug
          Components: indexer
    Affects Versions: 1.17
            Reporter: Patrick Mézard


There is an off-by-one error in [https://github.com/apache/nutch/blob/master/src/plugin/indexer-csv/src/java/org/apache/nutch/indexwriter/csv/CSVIndexWriter.java#L408]

The nextQuoteChar==0 case is skipped and the value serialized verbatim instead of being escaped.

I will send a PR after the ticket creation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)