[
https://issues.apache.org/jira/browse/COMPRESS-717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18051216#comment-18051216
]
Gary D. Gregory commented on COMPRESS-717:
------------------------------------------
Hello [~mkaraman]
Thank you for your report. The best path forward is provide your fix and unit
test as a PR on GitHub (https://github.com/apache/commons-compress).
> ZipArchiveInputStream and zstd causes StreamClosed exception during
> getNextEntry() loop
> ---------------------------------------------------------------------------------------
>
> Key: COMPRESS-717
> URL: https://issues.apache.org/jira/browse/COMPRESS-717
> Project: Commons Compress
> Issue Type: Improvement
> Components: Compressors
> Reporter: Mehmet Karaman
> Priority: Trivial
> Attachments: Archive.zip
>
>
> Hello,
> the default ZstdInputStream (com.github.luben.zstd.ZstdInputStream) has a
> deconstructor which is closing the original ZipArchiveInputStream when the
> garbage collector hits in during iterating over several files. Due the ZSTD
> library is 3rd party and works standalone, I guess this has to be fixed in
> the compress library.
> I've a simple example (just the class and a zstd compressed zip file) which
> contains a workarounded fix:
> [^Archive.zip]
> I would like to provide also the fix for this bug.
> Best regards
> Mehmet Karaman
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)