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



##########
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:
       Can this value be `null` if there is no/unknown encryption method used?




----------------------------------------------------------------
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