You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2020/08/16 21:08:02 UTC

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

    [ https://issues.apache.org/jira/browse/NUTCH-2790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17178622#comment-17178622 ] 

Hudson commented on NUTCH-2790:
-------------------------------

SUCCESS: Integrated in Jenkins build Nutch » Nutch-trunk #3 (See [https://ci-builds.apache.org/job/Nutch/job/Nutch-trunk/3/])
NUTCH-2790 indexer-csv: escape field leading quote character (snagel: [https://github.com/apache/nutch/commit/6c654988fe4576783c00ab3c6329e175231eda88])
* (edit) src/plugin/indexer-csv/src/test/org/apache/nutch/indexwriter/csv/TestCSVIndexWriter.java
* (edit) src/plugin/indexer-csv/src/java/org/apache/nutch/indexwriter/csv/CSVIndexWriter.java


> 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, plugin
>    Affects Versions: 1.17
>            Reporter: Patrick Mézard
>            Priority: Minor
>             Fix For: 1.17
>
>
> 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)