You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sarada Chelluboyena (JIRA)" <ji...@apache.org> on 2018/09/27 02:25:00 UTC
[jira] [Updated] (CAMEL-12837) Camel file option sequence
[ https://issues.apache.org/jira/browse/CAMEL-12837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sarada Chelluboyena updated CAMEL-12837:
----------------------------------------
Description:
Hi All,
In case of any exception moveFailed to specific location. It doesn't work as expected because file option delete is provided first as *delete=true&moveFailed={{Failed}}*
If I change the delete at the end like *moveFailed={{Failed}}&delete=true* It works. My concern is File option order shouldn't matter.
<route id="test" >
<from uri="smb://xxx?*delete=true&moveFailed={{Failed}}*"/>
<to id="_to8" uri="smb://xx?fileExist=Fail"/>
<onException>
<exception>java.lang.Exception</exception>
<log loggingLevel="ERROR" message="Error processing ${header.CamelFileName}, Route: ${routeId},${exception.stacktrace} - ERROR"/>
</onException>
</route>
was:
Hi All,
In case of any exception moveFailed to specific location. It doesn't work as expected because file option delete is provided first as *delete=true&moveFailed=\{{fm.moveFailed}}*
If I change the delete at the end like *moveFailed=\{{fm.moveFailed}}&delete=true* It works. My concern is File option order shouldn't matter.
<route id="test" >
<from uri="smb://xxx?*delete=true&moveFailed=\{{fm.moveFailed}}*"/>
<to id="_to8" uri="smb://xx?fileExist=Fail"/>
<onException>
<exception>java.lang.Exception</exception>
<log loggingLevel="ERROR" message="Error processing ${header.CamelFileName}, Route: ${routeId},${exception.stacktrace} - ERROR"/>
</onException>
</route>
> Camel file option sequence
> --------------------------
>
> Key: CAMEL-12837
> URL: https://issues.apache.org/jira/browse/CAMEL-12837
> Project: Camel
> Issue Type: Bug
> Reporter: Sarada Chelluboyena
> Priority: Minor
>
> Hi All,
> In case of any exception moveFailed to specific location. It doesn't work as expected because file option delete is provided first as *delete=true&moveFailed={{Failed}}*
> If I change the delete at the end like *moveFailed={{Failed}}&delete=true* It works. My concern is File option order shouldn't matter.
> <route id="test" >
> <from uri="smb://xxx?*delete=true&moveFailed={{Failed}}*"/>
> <to id="_to8" uri="smb://xx?fileExist=Fail"/>
> <onException>
> <exception>java.lang.Exception</exception>
> <log loggingLevel="ERROR" message="Error processing ${header.CamelFileName}, Route: ${routeId},${exception.stacktrace} - ERROR"/>
> </onException>
> </route>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)