Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-198

Relative path should be possible with YADE operation "copy" for SFTP protocol

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.6.4131
    • 1.10
    • YADE Client
    • 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.

      Attachments

        1. jade.log
          3 kB
          Andreas Liebert

        Issue Links

          Activity

            People

              oh Oliver Haufe
              al Andreas Liebert (Inactive)
              Andreas Liebert Andreas Liebert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h