Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2790

CSVIndexWriter does not escape leading quotes properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.17
    • 1.17
    • indexer, plugin
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pmezard Patrick Mézard
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: