[ 
https://issues.apache.org/jira/browse/COMPRESS-584?focusedWorklogId=634241&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-634241
 ]

ASF GitHub Bot logged work on COMPRESS-584:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Aug/21 11:29
            Start Date: 05/Aug/21 11:29
    Worklog Time Spent: 10m 
      Work Description: coveralls edited a comment on pull request #214:
URL: https://github.com/apache/commons-compress/pull/214#issuecomment-891708225


   
   [![Coverage 
Status](https://coveralls.io/builds/41898328/badge)](https://coveralls.io/builds/41898328)
   
   Coverage increased (+0.0005%) to 86.355% when pulling 
**cf5adfba2e3f8a1eebb51af817234bd50e99f734 on B3Partners:COMPRESS-584** into 
**8287bfdb8adbeae433e0a1205c6e4fb180b9d3be on apache:master**.
   


-- 
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: 634241)
    Time Spent: 4h 50m  (was: 4h 40m)

> 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: 4h 50m
>  Remaining Estimate: 0h
>
> When {{IOUtils.readRange(ReadableByteChannel,int)}} 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 directory 
> partially sometimes because {{IOUtils.readRange()}} called from 
> {{ZipFile.readCentralDirectoryEntry()}} read more bytes than asked for and it 
> stopped parsing directory entries.
> Fix: [https://github.com/apache/commons-compress/pull/214]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to