Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0905F200C09 for ; Tue, 10 Jan 2017 17:55:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 07C8F160B2C; Tue, 10 Jan 2017 16:55:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4E6B1160B3D for ; Tue, 10 Jan 2017 17:54:59 +0100 (CET) Received: (qmail 99839 invoked by uid 500); 10 Jan 2017 16:54:58 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 99812 invoked by uid 99); 10 Jan 2017 16:54:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2017 16:54:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5770E2C03DE for ; Tue, 10 Jan 2017 16:54:58 +0000 (UTC) Date: Tue, 10 Jan 2017 16:54:58 +0000 (UTC) From: "Stefan Bodewig (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COMPRESS-358) Offset is larger than block size in IWA dialect of FramedSnappyCompressorInputStream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 10 Jan 2017 16:55:00 -0000 [ https://issues.apache.org/jira/browse/COMPRESS-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15815484#comment-15815484 ] Stefan Bodewig commented on COMPRESS-358: ----------------------------------------- Current master uncompresses your example correctly when using a block size of 64k, the change is trivial. I've got a unit test based on your files sitting in my workspace ready to get committed unless there was something sensitive inside. > Offset is larger than block size in IWA dialect of FramedSnappyCompressorInputStream > ------------------------------------------------------------------------------------ > > Key: COMPRESS-358 > URL: https://issues.apache.org/jira/browse/COMPRESS-358 > Project: Commons Compress > Issue Type: Bug > Components: Compressors > Affects Versions: 1.12 > Reporter: Tim Allison > Priority: Trivial > Fix For: 1.14 > > Attachments: DocumentStyleSheet_commons_unsnapped.iwa, DocumentStyleSheet_fromZipStream.iwa, DocumentStylesheet.iwa, DocumentStylesheet_iwana_unsnapped.iwa, DocumentStylesheet_uncompressed.iwa, testNumbersNew.numbers > > > I finally was able to run the FramedSnappyCompressorInputStreamon a larger number of .iwa files. I got the following on two files: > {noformat} > java.io.IOException: Offset is larger than block size > at org.apache.commons.compress.compressors.snappy.SnappyCompressorInputStream.expandCopy(SnappyCompressorInputStream.java:341) > at org.apache.commons.compress.compressors.snappy.SnappyCompressorInputStream.fill(SnappyCompressorInputStream.java:212) > at org.apache.commons.compress.compressors.snappy.SnappyCompressorInputStream.read(SnappyCompressorInputStream.java:134) > at org.apache.commons.compress.compressors.snappy.FramedSnappyCompressorInputStream.readOnce(FramedSnappyCompressorInputStream.java:166) > at org.apache.commons.compress.compressors.snappy.FramedSnappyCompressorInputStream.read(FramedSnappyCompressorInputStream.java:122) > at java.io.InputStream.read(InputStream.java:101) > at java.nio.file.Files.copy(Files.java:2908) > at java.nio.file.Files.copy(Files.java:3027) > {noformat} > No good deed goes unpunished... :) Thank you, again! -- This message was sent by Atlassian JIRA (v6.3.4#6332)