You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Aaron Crickenberger (JIRA)" <ji...@apache.org> on 2008/01/28 15:45:24 UTC

[jira] Commented: (CAMEL-310) OgnlExpression causes null Message body/header propagation in Pipeline

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

Aaron Crickenberger commented on CAMEL-310:
-------------------------------------------

This fix applies to the camel-ognl component, but there was no such component in the listbox when I created this issue.

> OgnlExpression causes null Message body/header propagation in Pipeline
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-310
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-310
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Aaron Crickenberger
>         Attachments: camel-ognl.outMessageHandling.patch
>
>
> OgnlExpression eagerly gets an Exchange's Out Message when it's processing an Exchange.  This causes Pipeline to propagate the non-null Out Message (with null headers/body,) even in cases where the intention is propagate the In Message.  
> eg:
> {code}
> <from uri="direct:start" />
> <choice>
> <when>
> <ognl>request.header.foo == 'bar'</ognl>
> <to uri="mock:getsInMessage" />
> <to uri="mock:getsOutMessage" />
> </when>
> </choice>
> {code}
> The attached patch modifies OgnlExpression to avoid the eager fetch (the map being populated with the value seems unused anyway.)  Long term, maybe Pipeline should look at the Exchange's Pattern to determine which message it needs to propagate?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.