[ https://issues.apache.org/jira/browse/COMPRESS-675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17846926#comment-17846926 ]
Gary D. Gregory edited comment on COMPRESS-675 at 5/16/24 11:53 AM: -------------------------------------------------------------------- Fixed in git master and snapshot builds. Would you mind validating this addresses your issue? TY for your patience! was (Author: garydgregory): Fixed in git master and snapshot builds. > Regression in pack200's Archive class -- underlying InputStream is now closed > ------------------------------------------------------------------------------ > > Key: COMPRESS-675 > URL: https://issues.apache.org/jira/browse/COMPRESS-675 > Project: Commons Compress > Issue Type: Bug > Affects Versions: 1.26.0, 1.26.1 > Reporter: Tim Allison > Assignee: Gary D. Gregory > Priority: Major > Fix For: 1.26.2 > > > On TIKA-4221, on our recent regression tests, we noticed a change in the > behavior of Pack200's Archive class. In 1.26.0, the unwrapping of the > FilterInputStreams > (https://github.com/apache/commons-compress/blob/68cd2e7fb488b4ad8a9fdc81cae97ae6e8248ea5/src/main/java/org/apache/commons/compress/harmony/unpack200/Pack200UnpackerAdapter.java#L66) > effectively disables CloseShieldInputStreams, which means that the > underlying stream is closed after the parse. > This causes problems when a Pack200 file is inside of an ArchiveInputStream. > Not sure of the best solution. There's a triggering file on the Tika issue. > We can implement a crude workaround until this is fixed in commons-compress. > Thank you! -- This message was sent by Atlassian Jira (v8.20.10#820010)