Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
1.7.4, 1.8
-
None
-
Linux / Galadriel.sos / Wilma.sos
Sourceforge forum : https://sourceforge.net/p/sosftp/discussion/940707/thread/b4678e86/
Description
Use case
- User want to transfer three files i.e.
- SOS-100_22.01.2015.xls
- SOS-100_23.01.2015.xls
- SOS-100_24.01.2015.xls
- If user specify transactional = true and atomic_suffix = .tmp parameters to ensure either all THREE files are transferred or non of them. In case of unsuccessful file transfer YADE should rollback the transaction and delete all successful transferred and temporary files
[jadeHistory] include = MailSettings operation = copy file_list_name = /home/sos/data/from_galadriel/list.txt transactional = true atomic_suffix = .tmp
JADE CLI
YADE Command line execution
/home/sos/sos-berlin.com/jade_client/jade_current/bin/jade.sh -settings=/home/sos/sos-berlin.com/jade_client/config/1210_jade_settings_copy_galadriel_to_mp.ini -profile=copy_from__Galadriel_to_mp
Positive Test
- Start the YADE CLI with as specified in the YADE CLI, YADE will transfer three files without error and also write log message.
Negative Test
- Start the YADE CLI with following configuration, YADE will transfer three files without error
- Open any of the file in a Windows application i.e. Notepad++, Excel. The windows application will not allow any other process to overwrite the file
- Start the YADE with same settings as previous step, YADE will transfer three files and also log that files are successfully transfer.
- Check the target windows system , there will be 4 files
- 2 files which are successful transferred
- SOS-100_23.01.2015.xls
- SOS-100_24.01.2015.xls
- 1 file opened in the windows application
- SOS-100_22.01.2015.xls
- 1 file transferred by JADE but couldn't overwrite , with atomic_suffix=.tmp
- SOS-100_24.01.2015.xls.tmp
- 2 files which are successful transferred