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

BindyFixedLengthDataFormat does a trim on Fixed Length record

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.6.0
    • camel-bindy
    • None

    Description

      BindyFixedLengthDataFormat does a trim on Fixed Length record, although Fixed Length recordare strictly positional in nature and may contain lot of fillers with empty spaces, doing a trim causes Bindy to fail the message length validation and exception is thrown on message length

      // Read the line
      String line = scanner.nextLine().trim();

      Should be changed to

      // Read the line
      String line = scanner.nextLine();

      Or a conditional option should be provided in FixedLengthRecord annotation whether or not to trim the entire record

      Attachments

        1. CAMEL-3562.patch
          25 kB
          Ashwin J. Karpe
        2. UPD-CAMEL-3562.patch
          3 kB
          Ashwin J. Karpe

        Activity

          People

            akarpe Ashwin J. Karpe
            akarpe Ashwin J. Karpe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: