camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Minh Tran (JIRA)" <>
Subject [jira] [Commented] (CAMEL-7519) CSV unbinding does not escape embedded quote character
Date Mon, 11 Aug 2014 01:10:11 GMT


Minh Tran commented on CAMEL-7519:

I'm encountering this issue in my project as well.

I do consider this a bug. To me it's like the MVC pattern. Our Bindy POJO is our model and
the marshalling to csv is the view. How we configure the view, to include quoting or not should
have no effect on our model. At the moment, this issue is forcing a coupling between the model
and the view. The model has to understand which view it is using and have to change itself.

> CSV unbinding does not escape embedded quote character
> ------------------------------------------------------
>                 Key: CAMEL-7519
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-bindy
>            Reporter: James Birchfield
> If you have String field that contains the same character (String) as the quote character,
and quoting is set to true, the embedded character should be escaped.
> val s:String = "\"foo\""
> Bindy will unmarshal to the CSV stream ""foo"","...","...","...",...
> it should be "\"foo\"","...","...","...",...

This message was sent by Atlassian JIRA

View raw message