git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] camel pull request #2518: changed csv unmarshalling to only strip quotes if ...


GitHub user jamesmurf opened a pull request:

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

    changed csv unmarshalling to only strip quotes if quoting is set to "true"

    When unmarshalling a tsv file where the individual fields are not quoted, the unmarshaller still tries to strip the quotes.   For a field such as:    , "Amazing" field,     , the unmarshaller will see the first quote and try to strip it off expecting another quote at the end of the field.  The end result is bindy unmarshaller completely fails for the whole record.   The fix is to look at the  "quoting" field and if qoutes are not expected, do not try to strip them.

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

    $ git pull https://github.com/jamesmurf/camel bugfix-csv-quotes

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

    https://github.com/apache/camel/pull/2518.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 #2518
    
----
commit 71f9e86763cde6a07238483ac7f26662d30e83ee
Author: jamesmurf <jamesmurf@...>
Date:   2018-09-11T19:55:58Z

    changed csv unmarshalling to only strip quotes if quoting is set to "true" as this causes problems

----


---