nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Kurc (JIRA)" <>
Subject [jira] [Updated] (NIFI-995) TestGetFile fails in case of NTFS mount in Linux
Date Sat, 17 Oct 2015 14:50:05 GMT


Tony Kurc updated NIFI-995:
    Fix Version/s: 0.4.0

> TestGetFile fails in case of NTFS mount in Linux
> ------------------------------------------------
>                 Key: NIFI-995
>                 URL:
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.3.0
>            Reporter: Joe Mészáros
>            Assignee: Tony Kurc
>              Labels: NTFS, test
>             Fix For: 0.4.0
> 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
> 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
> 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