Friday, March 21, 2014

How to specify a non-default port number for FTP/SFTP/FTPS URL Definitions?

PeopleTools only supports URLs with following syntax:

PROTOCOL://HOSTNAME
PROTOCOL://USER:PASSWORD@HOSTNAME
PROTOCOL://USER:PASSWORD@HOSTNAME:PORT

Therefore if for example only sftp://hostname:portname is provided, the URL syntax validation thinks you are providing the User and Password without any Hostname, and gives an Invalid Parameter error.

Create instead a URL with a dummy (fake) username and password to workaround the above. The username provided and password will not actually be used, since the URL Properties would be used instead.

For example:
URL value: sftp://dummyuser:dummypassword@mysftpserver.com:1111



Above applies only from Peopletools Version 8.51 and later