You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Magnus Palmér (Created JIRA)" <ji...@apache.org> on 2012/03/31 13:18:27 UTC

[jira] [Created] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.

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.9.1, 2.7.3, 2.10.0
         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
            Priority: Minor


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

       

[jira] [Commented] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.

Posted by "Magnus Palmér (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245058#comment-13245058 ] 

Magnus Palmér commented on CAMEL-5133:
--------------------------------------

Yes, that seems to be the one.
Should I close this as a "duplicate" and link to CAMEL-5018?
                
> 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

       

[jira] [Updated] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.

Posted by "Magnus Palmér (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Magnus Palmér updated CAMEL-5133:
---------------------------------

    Affects Version/s: 2.8.4
    
> 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
>            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

       

[jira] [Commented] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.

Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246147#comment-13246147 ] 

Willem Jiang commented on CAMEL-5133:
-------------------------------------

@Magnus, I just marked this issue to be resolved.
                
> 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

       

[jira] [Commented] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.

Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246148#comment-13246148 ] 

Willem Jiang commented on CAMEL-5133:
-------------------------------------

@Magnus, I just marked this issue to be resolved.
                
> 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

       

[jira] [Updated] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.

Posted by "Magnus Palmér (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Magnus Palmér updated CAMEL-5133:
---------------------------------

    Affects Version/s:     (was: 2.10.0)
        Fix Version/s: 2.10.0

This actually works in trunk (2.10-SNAPSHOT).
Seem like a side-effect of another change, haven't figured it out yet. 
                
> 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.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
>            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

       

[jira] [Assigned] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.

Posted by "Willem Jiang (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-5133:
-----------------------------------

    Assignee: Willem Jiang
    
> 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

       

[jira] [Closed] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.

Posted by "Magnus Palmér (Closed JIRA)" <ji...@apache.org>.
     [ 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

       

[jira] [Resolved] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.

Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-5133.
---------------------------------

    Resolution: Fixed


It was fixed by CAMEL-5018.
                
> 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

       

[jira] [Commented] (CAMEL-5133) BindyCsvDataFormat breaks for non-required fields when separator is a whitespacecharacter like tab.

Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245020#comment-13245020 ] 

Willem Jiang commented on CAMEL-5133:
-------------------------------------

I think CAMEL-5018 fix the issue.
                
> 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
>            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