exceptionfactory commented on a change in pull request #4572:
URL: https://github.com/apache/nifi/pull/4572#discussion_r499964683



##########
File path: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/UnpackContent.java
##########
@@ -403,6 +434,9 @@ public void process(final InputStream in) throws 
IOException {
                                 attributes.put(FRAGMENT_ID, fragmentId);
                                 attributes.put(FRAGMENT_INDEX, 
String.valueOf(++fragmentCount));
 
+                                final String encryptionMethod = 
zipEntry.getEncryptionMethod().toString();
+                                
attributes.put(FILE_ENCRYPTION_METHOD_ATTRIBUTE, encryptionMethod);

Review comment:
       The encryptionMethod property defaults to NONE, and all references in 
the source repository appear to set a value.  Here's the initial declaration: 
https://github.com/srikanth-lingala/zip4j/blob/master/src/main/java/net/lingala/zip4j/model/AbstractFileHeader.java#L23




----------------------------------------------------------------
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:
[email protected]


Reply via email to