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

PutSFTP 1.10 results in zero permissions on destination by default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10.0
    • 1.11.0
    • Core Framework
    • None

    Description

      Recently updated our NiFi environments from 1.8 to 1.10. Issue occurs with PutSFTP 1.10 processors. If the Permissions property is left blank, the file is put with no permissions. In previous releases, and according to the nifi docs, if the permissions are left blank it should default to the original permissions. 

      Sample file put using PutSFTP 1.10:
      ---------- 1 9542 9544 1788 Jan 13 20:59 Test-2018-05-13-2018-05-19.zip
      The workaround is obviously to be sure and set the octal number for permissions, though if you forget, you can end up with thousands of unpermissioned files which require root to delete or re-permission. 

      Sometimes the file errors, and sometimes it does not. I have observed this error in the app log on some of the files:
      Failure java.io.IOException: Failed to rename dot-file to /data/incoming/OSDM_CORE_aplgenff010_20200115140000.zip due to 4: Failure
      at org.apache.nifi.processors.standard.util.SFTPTransfer.put(SFTPTransfer.java:766)

      Attachments

        Issue Links

          Activity

            People

              joewitt Joe Witt
              James.Ignatius James Ignatius
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m