commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <>
Subject [jira] [Commented] (COMPRESS-407) Validate Block and Record Sizes
Date Mon, 08 Jan 2018 07:08:03 GMT


Stefan Bodewig commented on COMPRESS-407:

The exception you see occurs, when I Compress tries to read a bunch of bytes from the archive
as a probe for detecting the type and to push those back. Can you also provide the nested
exception of that? I get a test failure following your description but don't see the exception
itself. In either case the exception happens before the input is handed to {{TarArchiveInputStream}}
at all.

I'm not familiar with the way you set up {{is}} but somehow the result doesn't seem to like
it when we try to read 12 bytes or reset to the beginning. Is {{source}} at least 12 bytes
long or has your tar come up empty? At first glance I don't see any error in the way you create
the archive. Does it work if you use the {{createArchiveInputStream}} overload with {{archiverName}}?

> Validate Block and Record Sizes
> -------------------------------
>                 Key: COMPRESS-407
>                 URL:
>             Project: Commons Compress
>          Issue Type: Sub-task
>          Components: Archivers
>            Reporter: Simon Spero
>             Fix For: 1.15
> Reject record sizes not equal to 512 bytes; require block sizes to be multiples of 512

This message was sent by Atlassian JIRA

View raw message