[
https://issues.apache.org/jira/browse/COMPRESS-584?focusedWorklogId=632759&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-632759
]
ASF GitHub Bot logged work on COMPRESS-584:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 03/Aug/21 08:51
Start Date: 03/Aug/21 08:51
Worklog Time Spent: 10m
Work Description: matthijsln opened a new pull request #214:
URL: https://github.com/apache/commons-compress/pull/214
See https://issues.apache.org/jira/browse/COMPRESS-584
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 632759)
Remaining Estimate: 0h
Time Spent: 10m
> IOUtils.readRange() can read more from a channel than asked for
> ---------------------------------------------------------------
>
> Key: COMPRESS-584
> URL: https://issues.apache.org/jira/browse/COMPRESS-584
> Project: Commons Compress
> Issue Type: Bug
> Components: Archivers
> Affects Versions: 1.21
> Reporter: Matthijs Laan
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When {{IOUtils.readRange(ReadableByteChannel)}} gets less than the number of
> bytes asked for in the first read call it does not reduce the buffer size for
> the next read call and may read more than asked for.
> This situation is rare when using a {{FileChannel}} but I wrote a
> {{SeekableByteChannel}} backed by a URI using HTTP range requests and reading
> from a socket can often return less bytes than asked for. When I used this
> channel to read a {{ZipFile}} it only read the ZIP central partially
> sometimes because {{IOUtils.readRange()}} called
> {{ZipFile.fromreadCentralDirectoryEntry()}} can read more bytes than asked
> for.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)