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

MergeContent is not properly storing file permissions from tar.permissions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.9.0
    • None
    • Extensions
    • None

    Description

      • GetFile retrieves files, with permissions stored in file.permissions in "rwx" format
      • UpdateAttribute converts rwx to digits and stores in tar.permissions via the following:
        • ${file.permissions:replaceAll('rwx','7'):replaceAll('rw-','6'):replaceAll('r-x','5'):replaceAll('r-','4'):replaceAll('-wx','3'):replaceAll('-w','2'):replaceAll('–x','1'):replaceAll('—','0')}
      • MergeContent creates tar file, reading tar.permissions
      • Download and extract files from tarball
      • Check permissions against incoming files
        • Permissions do not match, for example:
          • rwxrwx- becomes -r-----wT
          • rwxr-xr-x becomes -wxrw–wt
          • rw-rw-r- becomes --w–wx–T
          • rw------ becomes ---x-wx–T
          • rw-rr- becomes -w---r-T
          • rwxrwxr-x becomes -r----rwt
          • rwxr-xr-x becomes -wxrw–wt
      • Have tried pre-pending a leading 0, which also does not work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jrittenh Justin Rittenhouse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: