This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.10.x by this push:
     new 9c48b007bf06 CAMEL-22458: flatpack converter accesses invalid column 
names for header and trailer record value retrieval of fixed width files
9c48b007bf06 is described below

commit 9c48b007bf06f7aebe3a5790482f823015f616f4
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Oct 7 14:06:06 2025 +0200

    CAMEL-22458: flatpack converter accesses invalid column names for header 
and trailer record value retrieval of fixed width files
---
 .../java/org/apache/camel/component/flatpack/FlatpackConverter.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/FlatpackConverter.java
 
b/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/FlatpackConverter.java
index 6942677ee2b0..b234c3ef7799 100644
--- 
a/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/FlatpackConverter.java
+++ 
b/components/camel-flatpack/src/main/java/org/apache/camel/component/flatpack/FlatpackConverter.java
@@ -111,7 +111,7 @@ public final class FlatpackConverter {
      * Puts the values of the record into the map
      */
     private static void putValues(Map<String, Object> map, Record recordObj) {
-        String[] columns = recordObj.getColumns();
+        String[] columns = getColumns(recordObj);
 
         for (String column : columns) {
             String value = recordObj.getString(column);
@@ -144,7 +144,7 @@ public final class FlatpackConverter {
         return element;
     }
 
-    private static String[] getColumns(DataSet dataSet) {
+    private static String[] getColumns(Record dataSet) {
         // the columns can vary depending on header, body or trailer
         if (dataSet.isRecordID(FlatpackComponent.HEADER_ID)) {
             return dataSet.getColumns(FlatpackComponent.HEADER_ID);

Reply via email to