Return-Path: X-Original-To: apmail-nifi-commits-archive@minotaur.apache.org Delivered-To: apmail-nifi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E06117AAB for ; Thu, 24 Sep 2015 10:56:08 +0000 (UTC) Received: (qmail 7860 invoked by uid 500); 24 Sep 2015 10:56:03 -0000 Delivered-To: apmail-nifi-commits-archive@nifi.apache.org Received: (qmail 7413 invoked by uid 500); 24 Sep 2015 10:56:03 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 5620 invoked by uid 99); 24 Sep 2015 10:53:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2015 10:53:04 +0000 Date: Thu, 24 Sep 2015 10:53:04 +0000 (UTC) From: =?utf-8?Q?Joe_M=C3=A9sz=C3=A1ros_=28JIRA=29?= To: commits@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (NIFI-995) TestGetFile fails in case of NTFS mount in Linux MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Joe M=C3=A9sz=C3=A1ros created NIFI-995: --------------------------------- Summary: TestGetFile fails in case of NTFS mount in Linux Key: NIFI-995 URL: https://issues.apache.org/jira/browse/NIFI-995 Project: Apache NiFi Issue Type: Bug Components: Core Framework Reporter: Joe M=C3=A9sz=C3=A1ros I cloned the NiFi source code to local directory on a NTFS partition in Lin= ux, 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' a= nd 'dmask' mount options. It means, that you are able to run chmod commands= without any error, but it does not have any effect.=20 >From Java perspective, the Files.setPosixFilePermissions() was successful (= no exception), but the file's permissions were not changed, and the last ch= eck failed. An extra check is needed and set verifyPermissions to true, only if the Fil= es.setPosixFilePermissions() changed the permissions of targetPath. -- This message was sent by Atlassian JIRA (v6.3.4#6332)