camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sarah Phillips (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-9871) FlatpackDataFormat ignores errors in Flatpack's DataSet
Date Fri, 15 Apr 2016 13:23:25 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-9871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sarah Phillips updated CAMEL-9871:
----------------------------------
    Description: 
Given a route

        from("file:/temp/flatpack")
            .unmarshal(new FlatpackDataFormat())
            .split(body())
            .log("Record found");

and an input file
        foo,bar
        1
        2,foo
        3,foo,bar

I get one record logged; there are no errors or exceptions.

DataSet contains errors (for too few and too many fields), however, it is wrapped in a DataSetList
and access to the errors is lost.

  was:
Given a route

        from("file:/temp/flatpack")
            .unmarshal(new FlatpackDataFormat())
            .split(body())
            .log("Record found");

and an input file
        foo,bar
        1
        2,foo
        3,foo,bar

I get one record logged; there are no errors or exceptions.

DataSet contains errors, however, it is wrapped in a DataSetList and all access to the errors
is lost.


> FlatpackDataFormat ignores errors in Flatpack's DataSet
> -------------------------------------------------------
>
>                 Key: CAMEL-9871
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9871
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.16.2
>            Reporter: Sarah Phillips
>
> Given a route
>         from("file:/temp/flatpack")
>             .unmarshal(new FlatpackDataFormat())
>             .split(body())
>             .log("Record found");
> and an input file
>         foo,bar
>         1
>         2,foo
>         3,foo,bar
> I get one record logged; there are no errors or exceptions.
> DataSet contains errors (for too few and too many fields), however, it is wrapped in
a DataSetList and access to the errors is lost.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message