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 45F7D200BDA for ; Tue, 13 Dec 2016 14:20:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 44958160B15; Tue, 13 Dec 2016 13:20: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 90055160B23 for ; Tue, 13 Dec 2016 14:19:59 +0100 (CET) Received: (qmail 38302 invoked by uid 500); 13 Dec 2016 13:19: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 38240 invoked by uid 99); 13 Dec 2016 13:19:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2016 13:19:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 611D22C03E2 for ; Tue, 13 Dec 2016 13:19:58 +0000 (UTC) Date: Tue, 13 Dec 2016 13:19:58 +0000 (UTC) From: "Alexandre Sieira (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (VFS-626) Cannot open large bzip2 files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 13 Dec 2016 13:20:00 -0000 [ https://issues.apache.org/jira/browse/VFS-626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexandre Sieira updated VFS-626: --------------------------------- Description: I was having problems reading a large bzip2 file in which only a part of the data was being read. So Googling a bit I came across this Apache Commons Compress issue: https://issues.apache.org/jira/browse/COMPRESS-224 When looking at https://github.com/apache/commons-vfs/blob/7b42b5598774a40487dd59d699f5f865962822d9/core/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileObject.java#L61 we can see that the BZip2CompressorInputStream constructor option `decompressConcatenated` is not defined and defaults to false, which can cause the observed behavior. This manifests itself in multi-stream bzip2 files, which tends to be the case with larger files. I would suggest that this BZip2CompressorInputStream constructor option is explicitly set to true. It is a one-liner fix. was: I was having problems reading a large bzip2 file and came across this Apache Commons Compress issue: https://issues.apache.org/jira/browse/COMPRESS-224 When looking at https://github.com/apache/commons-vfs/blob/7b42b5598774a40487dd59d699f5f865962822d9/core/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileObject.java#L61 we can see that the BZip2CompressorInputStream constructor option `decompressConcatenated` is not defined and defaults to false, which can cause the observed behavior. I would suggest that this BZip2CompressorInputStream constructor option is explicitly set to true. > Cannot open large bzip2 files > ----------------------------- > > Key: VFS-626 > URL: https://issues.apache.org/jira/browse/VFS-626 > Project: Commons VFS > Issue Type: Bug > Affects Versions: 2.1 > Reporter: Alexandre Sieira > Labels: easyfix > > I was having problems reading a large bzip2 file in which only a part of the data was being read. So Googling a bit I came across this Apache Commons Compress issue: https://issues.apache.org/jira/browse/COMPRESS-224 > When looking at https://github.com/apache/commons-vfs/blob/7b42b5598774a40487dd59d699f5f865962822d9/core/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileObject.java#L61 we can see that the BZip2CompressorInputStream constructor option `decompressConcatenated` is not defined and defaults to false, which can cause the observed behavior. This manifests itself in multi-stream bzip2 files, which tends to be the case with larger files. > I would suggest that this BZip2CompressorInputStream constructor option is explicitly set to true. It is a one-liner fix. -- This message was sent by Atlassian JIRA (v6.3.4#6332)