Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.6.4131
-
None
Description
- Current Situation
- If I try to transfer a file like this:
jade.cmd -source_host=wilma.sos -source_protocol=sftp -source_ssh_auth_method=password -source_user=test -source_password=12345 -target_host=localhost -target_protocol=local -file_path=test.xml -operation=copy -target_dir=c:\temp
jade.cmd -source_host=wilma.sos -source_protocol=sftp -source_ssh_auth_method=password -source_user=test -source_password=12345 -target_host=localhost -target_protocol=local -file_spec=.* -source_dir=folder_on_server -operation=copy -target_dir=c:\temp
- then I receive the output:
main INFO 12:21:43,465 INFO (SOSDataExchangeEngine.java:1005) ::transfer SOSJADE_E_0101: Die Verarbeitung endete mit dem Fehler 'SOSVfs_E_229: Fehler. Datenübertragung nicht möglich. Grund: com.sos.JSHelper.Exceptions.JobSchedulerException: SOSVfs_E_226: ...Datei '/test.xml' existiert nicht.'
- as YADE puts a "/" in front of the path.
- With the full absolute path (file_path=/home/test/test.xml) it works.
- Desired Behavior
- If the file_path starts with any of the characters "/", "\", "Drive:\", Tilde, "$" (Unix environment variable), "%...%" (Windows environment variable) then the source_dir setting is ignored.
- If the file_path starts with any other character then the source_dir setting is considered:
- the source_dir setting is used as a prefix for the file_path.
- the source_dir setting is suffixed with a "/" (Unix) or "\" (Windows) should no such character be present as the last character of this setting.