Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12080

Allow creating csv content without last eol

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.21.0
    • Component/s: camel-bindy
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      Hello,
      rfc4180 for CSV states:

      The last record in the file may or may not have an ending line break.

      For deserialization Bindy accepts both types of files, but for serialization Bindy to my knowledge always creates content with last row ending with newline. Unfortunately some legacy systems treat last newline as one more empty row. Would it be possible to introduce control over this? I have this problem in CSV and also in fixed format for one other place. For now we need to strip the last char in Camel processor.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              adie Marcin Domanski
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: