Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 25117 invoked from network); 13 Apr 2009 15:23:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2009 15:23:37 -0000 Received: (qmail 82600 invoked by uid 500); 13 Apr 2009 15:23:36 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 82494 invoked by uid 500); 13 Apr 2009 15:23:36 -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 82484 invoked by uid 99); 13 Apr 2009 15:23:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 15:23:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 15:23:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CF341234C003 for ; Mon, 13 Apr 2009 08:23:14 -0700 (PDT) Message-ID: <1205992548.1239636194831.JavaMail.jira@brutus> Date: Mon, 13 Apr 2009 08:23:14 -0700 (PDT) From: "Christian Grobmeier (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (COMPRESS-69) Inconsistent handling of BZ2-Header after redesign In-Reply-To: <1622961123.1239620835287.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COMPRESS-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698412#action_12698412 ] Christian Grobmeier commented on COMPRESS-69: --------------------------------------------- Patch applied, thanks Uwe. Docs also updated. New revision: r764503 > Inconsistent handling of BZ2-Header after redesign > -------------------------------------------------- > > Key: COMPRESS-69 > URL: https://issues.apache.org/jira/browse/COMPRESS-69 > Project: Commons Compress > Issue Type: Bug > Reporter: Uwe Schindler > Fix For: 1.0 > > Attachments: COMPRESS-69.patch > > > I tried the current trunk of compress and tried the BZIP2-Streams. There are the following inconsitenceis now: > a) BZIP InputStream checks that the "BZ" header is available in the File (using this magicChar method) > b) BZIP OutputStream does not add the "BZ" header (it is commented out, saying that the caller does this) > c) The Javadocs of the input stream say, you should skip the header, which is wrong. > d) the tests do not find these errors, as the test only compressed a file, but does not try to decompress it or check its contents > Before the redesign commit, the handling of headers was consistent (both streams used it). The BZ Headers should be added to the Streams, as this would be consistent with GZIP (where the headers are automatically added, too). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.