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

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

GitHub user onders86 opened a pull request:

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

    CAMEL-7862-add CVSRecord annotation attribute to allow empty streams to be 
processed

    

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

    $ git pull https://github.com/onders86/camel CAMEL-7862

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

    https://github.com/apache/camel/pull/1521.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 #1521
    
----
commit 36df913f53e5a211f83171c86750ae3299b27df1
Author: onders86 <[email protected]>
Date:   2017-03-10T08:45:47Z

    CAMEL-7862-add CVSRecord annotation attribute to allow empty streams to be 
processed

commit 85a9e07c97b40b9724e9564deb45508bf32625cd
Author: onders86 <[email protected]>
Date:   2017-03-10T08:47:15Z

    CAMEL-7862-add CVSRecord annotation attribute to allow empty streams to be 
processed

----


> Allow empty csv files in the Camel Bindy unmarshalling process
> --------------------------------------------------------------
>
>                 Key: CAMEL-7862
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7862
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-bindy
>            Reporter: Tom So
>            Assignee: onder sezgin
>            Priority: Minor
>
> Currently the unmarshal process of Camel Bindy will throw an 
> IllegalArgumentException if the provided data stream is empty. Therefore the 
> client has to catch that Exception or bypass the unmarshal process to handle 
> empty files.
> It would be an improvement if Bindy will always return an empty collection if 
> the data stream is empty and there is nothing to unmarshal. Or if there is an 
> annotation available to decide how empty stream should be treated (i.e., 
> throw an exception or return an empty collection). The annotation could be 
> part of the @CsvRecord annotation: @CsvRecord(allowEmptyFiles = true).
> Please see this discussion on the camel users mailing list for further 
> information: 
> http://camel.465427.n5.nabble.com/Why-does-Bindy-prohibit-empty-files-td5756976.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to