Menu

#4 No error when user has no access to source dir folder

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=/root
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
file_spec=^..pdf$
operation=copy
remove_files=false
force_files=false

linuxuser has no access on /root (only root can access this folder).

When the jade command is run with this configuration return code is 0 and there are no error in the logs (see logs for details).

Regards,

Romain Joachim

1 Attachments

Discussion

  • soskb

    soskb - 2014-07-25

    Hi,

    Thank you for using JADE and for your post.

    i can see here two possible issues:

    1) the regexp could be not sufficient to get the file
    imho the regexp should be "^.*.pdf$"

    2) 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.

    hth
    soskb

     
  • Romain Joachim

    Romain Joachim - 2014-07-25

    Hi,

    Thanks for your support.

    1) I think regexp does not matter as the user has no rights on the folder --> he is not able to list files in that folder.

    2) We use force_files=false because the command is scheduled at a fixed interval.
    There might be no file to transfer at the tiem the command is launched and we don't want an error to be raised if that is the case.

    In that situation I would expect the command to raise an error when it tries to list files in source folder.

    Regards,

    Romain Joachim

     

    Last edit: Romain Joachim 2014-07-25
  • 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
     
  • Uwe Risse

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

Log in to post a comment.

MongoDB Logo MongoDB