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

Converting from stream/reader to string changes line breaks other than "\n"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0, 2.0-M1
    • 1.6.1, 2.0-M2
    • camel-core
    • None
    • Patch Available

    Description

      The IOConverter#toString(Reader/Stream) copies the input data line by line. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or a carriage return followed immediately by a linefeed. Unfortunately, the lines are always concatenated with "\n", so that HL7 messages (which use "\r") become unusable after conversion.

      Also see http://www.nabble.com/HL7-messages-become-unusable-after-convertBodyTo%28String.class%29-td23219748.html

      Attachments

        1. IOConverter-1.6.1.patch
          1 kB
          christian ohr
        2. IOConverter-2.0m2.patch
          1 kB
          christian ohr

        Activity

          People

            davsclaus Claus Ibsen
            christian.ohr christian ohr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: