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

YADE should not throw error "no matching file found" when parameter overwrite_files = false is set

    XMLWordPrintable

Details

    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

      1. When file is not present at target serer / target directory, YADE should transfer the files from source to target without any error
      2. 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

          Activity

            People

              oh Oliver Haufe
              mp Mahendra Patidar
              Oliver Haufe Oliver Haufe
              Oliver Haufe Oliver Haufe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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