camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Magnus Palmér (Closed) (JIRA) <j...@apache.org>
Subject [jira] [Closed] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.
Date Mon, 16 Apr 2012 18:02:25 GMT

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

Magnus Palmér closed CAMEL-5133.
--------------------------------


CAMEK-5018 fixes this.
CAMEL-5180 created to get that fix backported into the 2.9.x branch.
                
> BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter
like tab.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5133
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5133
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-bindy
>    Affects Versions: 2.7.3, 2.8.4, 2.9.1
>         Environment: Windows:
> OS Name:                   Microsoft Windows 7 Enterprise
> OS Version:                6.1.7601 Service Pack 1 Build 7601
> OS Manufacturer:           Microsoft Corporation
> SpringSource Tool Suite 
> Version: 2.9.1.RELEASE
> Build Id: 201203221000
>            Reporter: Magnus Palmér
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 2.10.0
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> When the separator is a whitespacecharacter and the last two (or more) fields are not
required and empty, the parsing fails.
> The cause is this:
> BindyCsvDataFormat.java
>  138               // Read the line
>  139              String line = scanner.nextLine().trim();
> String.trim() trims whitespace characters as in Character.isWhitespace(separatorChar)
> See also:
> http://camel.465427.n5.nabble.com/Bindy-Having-trouble-with-the-required-field-tp5597196p5597196.html
> I can provide testcases and patches if necessary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message