camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5285) trim() in SimpleLanguage.createExpression strips new-lines from expression
Date Sun, 20 May 2012 08:14:40 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279693#comment-13279693
] 

Claus Ibsen commented on CAMEL-5285:
------------------------------------

Yeah I guess we got a situation here, whether its a good idea to trim or not.
                
> trim() in SimpleLanguage.createExpression strips new-lines from expression
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-5285
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5285
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.2
>         Environment: Spring DSL
>            Reporter: Ashwin Pejavar
>
> A newly added (since 2.8.3) expression.trim() in SimpleLanguage.createExpression(String
expression) strips new-lines from the expression before evaluation.
> I was using this feature to log exceptions to a status file in my camel route. I built
the status message using a simple expression and terminated with &#10; in the spring-dsl
route. With 2.9.2, the individual messages are no longer delimited by new-line because of
the added expression.trim().

--
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