You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/05/20 18:34:38 UTC

[jira] [Commented] (CAMEL-7450) CsvDataFormat unable to setup header when useMaps="true"

    [ https://issues.apache.org/jira/browse/CAMEL-7450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14003593#comment-14003593 ] 

ASF GitHub Bot commented on CAMEL-7450:
---------------------------------------

GitHub user ccancellieri opened a pull request:

    https://github.com/apache/camel/pull/158

    fix CAMEL-7450: CsvDataFormat unable to setup header when useMaps=true

    https://issues.apache.org/jira/browse/CAMEL-7450
    
    Hi all,
    seems that it is impossible to setup the header of a csv when using a map.
    It is always used the first line of the CSV file.
    Using this configuration in conjunction with my patch I'm currently able to do so (also having the skipFirstLine flag working with useMaps="true")
    Configuration:
    https://github.com/ccancellieri/camel_poc/blob/master/src/main/resources/META-INF/spring/camel-context.xml
    
    Is this acceptable for you?


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ccancellieri/camel CAMEL-7450-master-CsvDataFormat-useMap

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/158.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #158
    
----
commit f31d52b97e79fa4bb9a688bddac5e63e4813719a
Author: carlo <cc...@hotmail.com>
Date:   2014-05-20T16:30:32Z

    fix CAMEL-7450: CsvDataFormat unable to setup header when useMaps=true

----


> CsvDataFormat unable to setup header when useMaps="true"
> --------------------------------------------------------
>
>                 Key: CAMEL-7450
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7450
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-csv
>    Affects Versions: 2.13.0
>         Environment: Linux
>            Reporter: carlo cancellieri
>             Fix For: 2.13.0
>
>
> Hi all,
>  seems that it is impossible to setup the header of a csv when using a map.
> It is always used the first line of the CSV file.
> Using this configuration in conjunction with my patch I'm currently able to do so (also having the skipFirstLine flag working with useMaps="true")
> Configuration:
> https://github.com/ccancellieri/camel_poc/blob/master/src/main/resources/META-INF/spring/camel-context.xml



--
This message was sent by Atlassian JIRA
(v6.2#6252)