Camel
  1. Camel
  2. CAMEL-1568

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0, 2.0-M1
    • Fix Version/s: 1.6.1, 2.0-M2
    • Component/s: camel-core
    • Labels:
      None
    • Patch Info:
      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

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

        Activity

        Hide
        Claus Ibsen added a comment -

        Closing all 2.0M2 tickets

        Show
        Claus Ibsen added a comment - Closing all 2.0M2 tickets
        Hide
        Claus Ibsen added a comment -

        There was a bug in the patch. It did not read the entire stream

        trunk: 769434.
        1.x : 769435.

        Show
        Claus Ibsen added a comment - There was a bug in the patch. It did not read the entire stream trunk: 769434. 1.x : 769435.
        Hide
        Claus Ibsen added a comment -

        Thanks for the the patch Christian

        Show
        Claus Ibsen added a comment - Thanks for the the patch Christian
        Hide
        Claus Ibsen added a comment -

        trunk: 769239.
        1.x: 769241.

        Show
        Claus Ibsen added a comment - trunk: 769239. 1.x: 769241.
        Hide
        christian ohr added a comment -

        Patch for 2.0m2 follows asap

        Show
        christian ohr added a comment - Patch for 2.0m2 follows asap

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            christian ohr
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development