SFTP_JAVA Job appends Path parameter to file name
search cancel

SFTP_JAVA Job appends Path parameter to file name

book

Article ID: 100104

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

SFTP_JAVA may append part of the Path parameter to the Remote File/Patten value if the Remote Path value does not contain a trailing slash.

Because it is generally required that a path contains a trailing slash, this issue only occurs if the remote server does not accept a trailing slash in the Remote Path.

Example:
Remote Path = /home/test
Remote File/Pattern = test.txt

Results:
cd to - /home/test done
local = C:\user_tests\test.txt remote = /home/testtest.txt
put C:\user_tests\test.txt /home/testtest.txt Successful

 

Environment

Release:
Component: APPMGR

Resolution

Refer to remote server's OS admin regarding why the server is not accepting a trailing slash for an SFTP path value.

Workaround:
Add a "leading" slash to the Remote File/Pattern value. The remote  server should interpret this as a trailing slash to the remote path value.

Example:
Remote Path = /home/test
Remote File/Pattern = /test.txt

Results:
cd to - /home/test done
local = C:\user_tests\test.txt remote = /home/testtest.txt
put C:\user_tests\test.txt /home/test/test.txt Successful