You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2019/06/13 04:56:40 UTC

[GitHub] [nifi] ijokarumawak commented on a change in pull request #3294: NIFI-6004 PutFile created directory permissions

ijokarumawak commented on a change in pull request #3294: NIFI-6004 PutFile created directory permissions
URL: https://github.com/apache/nifi/pull/3294#discussion_r293203136
 
 

 ##########
 File path: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFile.java
 ##########
 @@ -81,6 +83,9 @@
 
     public static final String FILE_MODIFY_DATE_ATTRIBUTE = "file.lastModifiedTime";
     public static final String FILE_MODIFY_DATE_ATTR_FORMAT = "yyyy-MM-dd'T'HH:mm:ssZ";
+    
+    public static final Pattern RWX_PATTERN = Pattern.compile("^([r-][w-])([x-])([r-][w-])([x-])([r-][w-])([x-])$");
+    public static final Pattern NUM_PATTERN = Pattern.compile("\\d+");
 
 Review comment:
   Optional. We could use these two regex to validate user input when the configured value doesn't use EL. Currently, `CHANGE_PERMISSIONS` allows any non-empty value.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services