nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Mészáros (JIRA) <>
Subject [jira] [Created] (NIFI-995) TestGetFile fails in case of NTFS mount in Linux
Date Thu, 24 Sep 2015 10:53:04 GMT
Joe Mészáros created NIFI-995:

             Summary: TestGetFile fails in case of NTFS mount in Linux
                 Key: NIFI-995
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
            Reporter: Joe Mészáros

I cloned the NiFi source code to local directory on a NTFS partition in Linux, and was surprised,
when one of the standard test case failed on my box. The problem was with the last step of
TestGetFile#testAttributes(), which checks, whether the file permission modification is working.

The original implementation used Files.setPosixFilePermissions() method to set the file permission,
and if no exception was raised (verifyPermissions), it made this file permission check.

If you have a NTFS partition mounted in Linux, you are unable to change the permissions of
your files, which is controlled globally with the 'fmask' and 'dmask' mount options. It means,
that you are able to run chmod commands without any error, but it does not have any effect.

>From Java perspective, the Files.setPosixFilePermissions() was successful (no exception),
but the file's permissions were not changed, and the last check failed.

An extra check is needed and set verifyPermissions to true, only if the Files.setPosixFilePermissions()
changed the permissions of targetPath.

This message was sent by Atlassian JIRA

View raw message