Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-6883

PutSFTP Permissions Wrong with NiFi 1.10.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.10.0
    • None
    • Core Framework
    • 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)

      Attachments

        1. PutSFTP Config.png
          247 kB
          Josef Zahner
        2. Flowfile Permissions.png
          124 kB
          Josef Zahner
        3. Canvas Overview.png
          400 kB
          Josef Zahner

        Activity

          People

            Unassigned Unassigned
            jzahner Josef Zahner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: