[
https://issues.apache.org/jira/browse/CAMEL-17767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17503425#comment-17503425
]
Benjamin Graf commented on CAMEL-17767:
---------------------------------------
We use the marshaler in a dynamic endpoint (tod) where the fixed headers are
calculated at runtime. In some cases, they are null to use dynamic columns.
> camel-csv - Empty header uri parameter interpreted as fixed column ""
> ---------------------------------------------------------------------
>
> Key: CAMEL-17767
> URL: https://issues.apache.org/jira/browse/CAMEL-17767
> Project: Camel
> Issue Type: Bug
> Components: camel-csv
> Affects Versions: 3.14.2
> Reporter: Benjamin Graf
> Priority: Minor
>
> Since the last "big" change to camel-csv in Camel 3.12.0 an empty header in
> uri like
> {code:java}
> <to uri="dataformat:name:marshal?header=&delimiter=;"/>
> {code}
> is interpreted as fixed column empty String.
> Maybe do empty String check while creating marshaler in
> ([Link|https://github.com/apache/camel/blob/2b28e5386b964f17562960402faece012aab03d5/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/CsvMarshaller.java#L62])
--
This message was sent by Atlassian Jira
(v8.20.1#820001)