An FT job tries to resolve a symlink that doesn't correspond to the filter defined in the FT jobs and fails if the Agent's user doesn't have permission to the folder in the link.
This fails even if FT_linkfiles=0 is set in the Agent's ini-file.
The issue happens independent of setting root or set-UID on the Agent's executable
Reproduction:
-rw-rw-r--. 1 sup sup 0 Aug 23 14:47 logfile.txt
drwx------. 2 root root 35 Aug 23 14:50 root_folder
lrwxrwxrwx. 1 root root 33 Aug 23 14:53 xxx.txt -> root_folder/file_from_root_folder
It is expected that only file 'logfile.txt' transferred
However, the FT fails with the following error:
8/24/2023 02:35:06 PM U00011005 File transfer 'JOBF.CASE' (RunID '0002439015') ended abnormally.
8/24/2023 02:35:06 PM U00063014 Failed to read directory '/tmp/case/source'. Error: 'boost::filesystem::status: Permission denied [system:13]: '/tmp/case/source/xxx.txt''.
If the folder is accessible by user 'sup' the FT works.
OS: Unix/Linux
AE-33343
Update to a fix version listed below or a newer version if available.
Fix version:
Component(s): Agent Unix
Automation.Engine 21.0.10 - Available
Defect Desc: A problem has been fixed where the Unix Agent did not process the ini file setting "ft_Linkfiles", and Filetransfers ended abnormally with "permission denied" because the Agent tried to access files that should not be accessed.