Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.6.4131, 1.8.1
-
None
-
Galartiel.sos
Description
As of situation
- when YADE is configured with parameter overwrite_files = false JADE throws an error
letzter aufgetretener Fehler = SOSJADE_E_0100: es wurde keine Datei mit einem Namen gefunden der dem regulären Ausdruck '^.*_22.01.2015\.xls$' entspricht. SOSJADE_E_0100: es wurde keine Datei mit einem Namen gefunden der dem regulären Ausdruck '^.*_22.01.2015\.xls$' entspricht.
Expected behavior
- When file is not present at target serer / target directory, YADE should transfer the files from source to target without any error
- When file is ALREADY present and target server / target directory, YADE should print an appropriate warning i.e.
[WARN] transfer skipped for file xxx due to overwrite constraint
How to reproduce
- Profile
[from__wilma_to__Galadriel] file_spec = ^.*_22.01.2015\.xls$ operation = copy overwrite_files = false ;; source_host = homer.sos source_protocol = sftp source_port = 22 source_user = test source_ssh_auth_method = publickey ;;* * * * * * * * * * * * * * * * * * * * * * * * ;;;* id_rsa for test@homer.sos at Galadriel.sos * ;;;* * * * * * * * * * * * * * * * * * * * * * * * source_ssh_auth_file = /home/sos/.ssh/id_rsa source_dir = /home/test/data/from_homer ; ;; target_dir = /home/sos/data/to_galadriel target_host = localhost target_protocol = local ;; [sos@galadriel config]$
- Execute command line
[sos@galadriel bin]$ pwd /home/sos/sos-berlin.com/jade_client/jade_current/bin [sos@galadriel bin]$ /home/sos/sos-berlin.com/jade_client/jade_current/bin/jade.sh -settings="/home/sos/sos-berlin.com/jade_client/config/9000_jade_settings_overwrite_files_localhost.ini" -profile=from__wilma_to__Galadriel
Attachments
Issue Links
- is duplicated by
-
YADE-199 Parameter overwrite_files=no for existing files should not result in misleading error message
- Dismissed
- is related to
-
YADE-232 YADE info log messages should be more concise
- Released
- requires functional consideration of
-
YADE-207 Exceptions should be raised for some reasons even though the parameter force_files=false
- Released