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

For fixed length records crlf field is not honored during un-marshaling

    XMLWordPrintableJSON

    Details

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

      Description

      Reading documentation here you can find that there is a @FixedLengthRecord.clrf annotation parameter described as:

      optional - possible values = WINDOWS,UNIX,MAC, or custom; default value = WINDOWS - allow to define the carriage return character to use. If you specify a value other than the three listed before, the value you enter (custom) will be used as the CRLF character(s)

      Unfortunately it seems that this is honored only for marshaling, as for un-marshaling in BindyFixedLengthDataFormat.unmarshal() java.util.Scanner.nextLine() is used. This implementation ignores the crlf parameter during un-marshaling.

        Attachments

          Activity

            People

            • Assignee:
              onders Onder Sezgin
              Reporter:
              domaru Marcin Domanski
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: