Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-21703

camel-bindy trim does not work on left-aligned input by default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • fuse-7.11.1-GA
    • Camel
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Todo
    • Very Likely
    • Customer Facing

      For an input to camel-bindy that is left-aligned, e.g.:

      $ hexdump test.txt
      0000000 4554 5453 2020 2020 2020 000a

      Camel-bindy does not trim the value like it did in Fuse 6.x. Instead, an attribute must be added (align = "B" or align = "L"):

      @FixedLengthRecord(length=10, paddingChar=' ')
      public class MyRecord {
      
          @DataField(pos = 1, length=10, trim = true, align = "B")
          private String myData;
      
          public String getMyData() {
              return myData;
          }
      }
      

      This breaks backwards compatibility for a migration from Fuse 6.2 to Fuse 7.11.

              Unassigned Unassigned
              rhn-support-shiggs Stephen Higgs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: