[
https://issues.apache.org/jira/browse/IO-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved IO-853.
--------------------------------
Fix Version/s: 2.16.1
Resolution: Fixed
[~mdrob]
Thank you for your report.
Fixed in git master and snapshot builds in
https://repository.apache.org/content/repositories/snapshots/commons-io/commons-io/2.16.1-SNAPSHOT/
> BoundedInputStream.reset() not updating count
> ---------------------------------------------
>
> Key: IO-853
> URL: https://issues.apache.org/jira/browse/IO-853
> Project: Commons IO
> Issue Type: Bug
> Components: Streams/Writers
> Affects Versions: 2.16.0
> Reporter: Mike Drob
> Assignee: Gary D. Gregory
> Priority: Major
> Fix For: 2.16.1
>
>
> In
> [https://github.com/apache/commons-io/commit/99702ec5ce4c25a909299c4f4a8be616d8ce04dc]
> BoundedInputStream was modified to use a CountingInputStream, and reset() no
> longer set the count to the mark, because count was retrieved from the other
> stream.
> Then in
> [https://github.com/apache/commons-io/commit/812d8a4b53d9758b4f081d9b98a70ea9ef131a0e]
> the count field was added back in but reset() was not fixed to update the
> value of count when called.
> This causes a regression, found when attempting to upgrade commons-compress.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)