ServiceMix 3.3.1 FileSender throws exception and removes target file anyway if
it is already exists
---------------------------------------------------------------------------------------------------
Key: SMXCOMP-595
URL: https://issues.apache.org/activemq/browse/SMXCOMP-595
Project: ServiceMix Components
Issue Type: Bug
Components: servicemix-file
Affects Versions: servicemix-file-2009.01
Environment: Any
Reporter: Sergiy Mamitko
Fix For: servicemix-file-2009.02
FileSender in Servicemix 3.3.1 now has property overwrite=true|false, default
is false.
In case of output file exists, component throws exeption like this
throw new IOException("Can not write " + name + " : file already exists and
overwrite has not been enabled");
BUT after that FileSender removes target file anyway.
Simple SA (from file to file) can show that:
1. copy some file to input folder -> file processed and put to output folder.
2. copy the same file to input folder -> file not processed because output file
already exists -> but after that output file removed -> and next polling
successfully processed to output.
So, second step shows that there were two exchanges and input file was
processed anyway.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.