Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1.10.0
-
None
-
None
-
OpenJDK 8, Centos 7.6, NiFi Cluster with 2 Nodes
Description
The PutSFTP processor doesn't anymore respect the flowfile attribute "file.permissions". It sets per default always "000" if the field "Permissions" from PutSFTP is empty, even thought the attribute has been set by the ListSFTP. Occurs since NiFi 1.10.0.
Workaround: set the permission manually by writing them into field "Permissions".
Steps to reproduce: Check my canvas overview picture below with ListSFTP, FetchSFTP, UpdateAttribute & PutSFTP processors. As input I've used the "testfile.txt" and as output I've written "newname.txt". Permissions for the output are "----------" instead of "664".
/tmp/my_test: total 4.0K drwxrwxr-x 2 usera usera 26 Nov 19 09:40 . drwxrwxrwt. 10 root root 203 Nov 19 10:03 .. -rw-rw-r-- 1 usera usera 4 Nov 19 09:40 testfile.txt
/tmp/my_test_out: total 4.0K drwxrwxr-x 2 usera usera 25 Nov 19 10:03 . drwxrwxrwt. 10 root root 203 Nov 19 10:03 .. ---------- 1 usera usera 4 Nov 19 10:03 newname.txt
Canvas Overview:
Flowfile Permission before PutSFTP:
PutSFTP Config for field "Permissions" (default empty)