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

ASF subversion and git services commented on NIFI-2818:
-------------------------------------------------------

Commit f32bdf7be9d4eaa62d5fdce375e8e3fa2bfa3557 in nifi's branch 
refs/heads/master from Andre F de Miranda
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=f32bdf7 ]

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: Joseph Witt
>             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