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

Brandon DeVries commented on NIFI-1352:
---------------------------------------

[~ggwizdz1],

It's been a year, and I did a really poor job putting any details in the 
ticket, but I think the primary use case I was envisioning would be wanting to 
stamp a "created by X" on the zip... in which case you would probably set up 
the flow to add the attribute to all of the files being merged, so they'd all 
be the same anyway.  Alternatively, you could de-dupe the values of each 
FlowFile's "zip.comment" and include them all (up to the comment length limit). 
 I feel like the latter might be the better way to go, but I'm definitely open 
to debate.

Brandon

> Add ability to add a zip comment in MergeContent
> ------------------------------------------------
>
>                 Key: NIFI-1352
>                 URL: https://issues.apache.org/jira/browse/NIFI-1352
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Brandon DeVries
>            Assignee: Gray Gwizdz
>            Priority: Trivial
>
> The Zip format includes a file comment, which can be written with a 
> ZipOutputStream \[1\].  Modify MergeContent to optionally include a comment 
> (possibly via a "zip.comment" attribute or something...).
> \[1\] 
> https://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipOutputStream.html#setComment%28java.lang.String%29



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to