[ 
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&amp;moveFailed=\{{fm.moveFailed}}*

If I change the delete at the end like 
*moveFailed=\{{fm.moveFailed}}&amp;delete=true* It works. My concern is File 
option order shouldn't matter.

<route id="test" >
 <from uri="smb://xxx?*delete=true&amp;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)

Reply via email to