Menu

#5 No read permission on source file

None
closed
nobody
None
5
2015-02-13
2014-07-24
No

Hi,

My ini config is the following:

[test]
verbose=9
source_host=linuxhost.fsp.ch
source_dir=/tmp
file_path=/tmp/noaccess.pdf
source_protocol=sftp
source_ssh_auth_method=password
source_user=linuxuser
source_password=linuxpassword
target_host=winhost.fsp.ch
target_dir=\winhost.fsp.ch\share
target_protocol=local
target_pre_transfer_commands=net use \winhost.fsp.ch\share password
operation=copy
remove_files=false
force_files=false

linuxuser can access /tmp folder but has no rights on noaccess.pdf.

When the jade command is run with this configuration the following :

  • there are errors in the logs which is OK
  • return code is 0 which is not OK
  • an empty noaccess.pdf file is created in the target folder

In this scenario the command should finish with a return code not equal to 0.
And an empty file should not be created in the target folder.

Regards,

Romain Joachim

1 Attachments

Discussion

  • soskb

    soskb - 2014-07-25

    Hi,

    Thank you for using JADE and for your post.

    the option "force_files=false" will return a cc of zero, even if there are no files transferred. The default for this option is "true". I don't know the reason why you set it to false.

    I will check why the file on the target is created.

    hth
    soskb

     
  • Romain Joachim

    Romain Joachim - 2014-07-25

    Hi,

    Thanks for your support.

    The command is scheduled at fixed interval and there might be no files when it is launched.
    We use force_files=false because we do not want the command to raise an error if no files are found.

    Regards,

    Romain Joachim

     
  • Oliver Haufe

    Oliver Haufe - 2014-08-01

    Hi,

    I've reported it in http://www.sos-berlin.com/jira/browse/SOSFTP-207
    The fix is in progress

    Regards,
    Oliver

     
  • Uwe Risse

    Uwe Risse - 2015-02-13
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.

MongoDB Logo MongoDB