[ 
https://issues.apache.org/jira/browse/NIFI-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15518950#comment-15518950
 ] 

ASF GitHub Bot commented on NIFI-2818:
--------------------------------------

GitHub user trixpan opened a pull request:

    https://github.com/apache/nifi/pull/1059

    NIFI-2818 - Minimise fs permission required by  NiFi

                1 - Replace a r/w test over $NIFI_HOME/lib that is performed
                but never utilised by a RO test
                2 - Rename ensureDirectoryExistAndCanAccess to
                ensureDirectoryExistAndCanReadAndWrite and deprecate the
                former

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/trixpan/nifi NIFI-2818

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/1059.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1059
    
----
commit c1fbf569dfddf682979f4059d92750c499d02527
Author: Andre F de Miranda <[email protected]>
Date:   2016-09-24T12:02:04Z

    NIFI-2818 - Minimise fs permission required by  NiFi
    
                1 - Replace a r/w test over $NIFI_HOME/lib that is performed
                but never utilised by a RO test
                2 - Rename ensureDirectoryExistAndCanAccess to
                ensureDirectoryExistAndCanReadAndWrite and deprecate the
                former

----


> NIFI requires write access to NIFI_HOME/lib upon start
> ------------------------------------------------------
>
>                 Key: NIFI-2818
>                 URL: https://issues.apache.org/jira/browse/NIFI-2818
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 0.7.0
>            Reporter: Andre
>            Assignee: Andre
>             Fix For: 1.1.0
>
>
> As part of NIFI-1500 we noted that NiFi requires what can be described as 
> excessive filesystem privileges to be executed.
> One of the issues identified is that NiFi requires write access to 
> NIFI_HOME/lib as illustrated by the following:
> {code}
> nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-nar-utils/src/main/java/org/apache/nifi/nar/NarUnpacker.java
>  for (Path narLibraryDir : narLibraryDirs) {
>                 File narDir = narLibraryDir.toFile();
>                 FileUtils.ensureDirectoryExistAndCanAccess(narDir);
>                 File[] dirFiles = narDir.listFiles(NAR_FILTER);
>                 if (dirFiles != null) {
>                     List<File> fileList = Arrays.asList(dirFiles);
>                     narFiles.addAll(fileList);
>                 }
>             }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to