NetBSD Problem Report #27228
Received: (qmail 10624 invoked by uid 605); 11 Oct 2004 21:11:58 -0000
Message-Id: <E1CH7SW-0000zk-5R@tll.i.purplei.com>
Date: Mon, 11 Oct 2004 22:11:56 +0100
From: abs@absd.org
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: abs@absd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: serious gzip/tar misfeature
X-Send-Pr-Version: 3.95
>Number: 27228
>Category: bin
>Synopsis: serious gzip/tar misfeature
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 11 21:12:00 +0000 2004
>Closed-Date: Sat Sep 09 21:59:06 +0000 2006
>Last-Modified: Sat Sep 09 21:59:06 +0000 2006
>Originator: David Brownlee
>Release: NetBSD 2.0_RC4
>Organization:
>Environment:
System: NetBSD tll.i.purplei.com 2.0_RC4 NetBSD 2.0_RC4 (_ACPI_) #1: Mon Oct 11 13:05:11 BST 2004 root@tll.i.purplei.com:/var/obj/i386/files/netbsd/2.0/sys/arch/i386/compile/_ACPI_ i386
Architecture: i386
Machine: i386
>Description:
Certain gzipped tarfiles are not extracted correctly if they
are decompressed by gzip in a pipe to tar. They extract fine if
gunzipped first and then extracted.
The filenames extracted are in some cases truncated - for example
.../apache/jasper/compiler/Node.TaglibDirective.html
would be extracted as
.../apache/jaspe
Its quite possible there is a problem with the tarfile, but extraction
works perfectly on 1.6.x, on 2.0 using a 1.6.x gzip, and on 2.0 if
the file is gunzipped before extraction.
>How-To-Repeat:
Download jakarta-tomcat-5.0.28.tar.gz from
http://jakarta.apache.org/site/binindex.cgi
The problem is exhibited by either of the following two
commands (with slightly different results in each)
gzip -dc jakarta-tomcat-5.0.28.tar.gz | tar xpf -
tar xzpf jakarta-tomcat-5.0.28.tar.gz
After uncompressing the tar.gz with gunzip, both the
following two commands work wuthout problem
cat jakarta-tomcat-5.0.28.tar | tar xpf -
tar xpf jakarta-tomcat-5.0.28.tar
Interestingly, after recompressing the tar with gzip, the
problem is still present with
tar xzpf jakarta-tomcat-5.0.28.tar.gz
Additional data point - the problem does not occur using a gzip
binary from 1.6.x (still keeping the tar binary from 2.0_x)
>Fix:
>Release-Note:
>Audit-Trail:
From: David Brownlee <abs@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/27228 CVS commit: pkgsrc/www/jakarta-tomcat
Date: Mon, 11 Oct 2004 21:15:49 +0000 (UTC)
Module Name: pkgsrc
Committed By: abs
Date: Mon Oct 11 21:15:49 UTC 2004
Modified Files:
pkgsrc/www/jakarta-tomcat: Makefile PLIST distinfo
Log Message:
Update jakarta-tomcat to 5.0.28.
Also, work around a horrible interaction with the gzip in NetBSD
2.0 (at least RC4). If gzip is used in a pipeline the tarfile
fails to extract (PR bin/27228)
Changes since 5.0.27:
General
fix 30239: Updated IIS how-to to link to Wiki page with
instrutions for IIS 5 and IIS 6 configurations. (yoavs)
fix 30238: Replaced isapi_redirector.dll isapi_redirect.dll
in installation script for consistency. (yoavs)
fix 29584: Enhanced and clarified JNDI documentation.
(yoavs)
fix 30245: Corrected Connector documentation to list
"address" as a common attribute. (yoavs)
fix 29826: Modified setclasspath.bat exit code to 1.
(yoavs)
update Updated status page, mostly rewritten. (yoavs)
update Updated Jakarta-Commons dependencies: BeanUtils to 1.7.0,
Collections to 3.1. (yoavs)
update Removed classic compiler directives from Ant build, as we
use modern anyways. (yoavs)
update Modified RELEASE-PLAN-5.0.html to indicate status given
start of work on Tomcat 5.next. (yoavs)
update Added command lines utilities version.sh, version.bat to
let you know what version is installed. (funkman)
Catalina
30602: Subject is not available during the first call
fix to the servlet which use the basic authentication
(jfarcand)
fix 29831: Added support for Boolean property to
BeanFactory. (yoavs)
fix 28875: Made ErrorReportValve use UTF-8 encoding by
default. (yoavs)
fix 30325: Only set CATALINA_HOME if not already set (in
bin/catalina.sh). (yoavs)
fix 30144: Made SSIServlet check resource MimeType before
using text/html and UTF-8 default. (yoavs)
29406: Made JAASRealm configurable as to whether it
fix should use the context ClassLoader or the default
ClassLoader by adding a useContextClassLoader boolean
attribute. (yoavs)
If ServletResponse.getWriter() is called and no char
encoding has been specified, set response char encoding to
fix default (ISO-8859-1) so that it is reflected in
getContentType() and Content-Type header, as required by
the Servlet Spec (Bugtraq 6152759) (luehe)
fix 29869: Better JMX/JSR77 support in StandardContext and
StandardWrapper. (remm)
update Fixed broken link to JK documenration from AJP Connector
reference page. (yoavs)
fix 30587: Typo in ExtendedAccessLogValve. (yoavs)
fix 30561: Broken restart of NamingService. (yoavs)
fix 29668: NPE in HostConfig, directory created for
deployed WAR instead of xml file. (yoavs)
fix 30179: Improved Bootstrap catalina.properties
handling. (yoavs)
fix 30762: Servlet#destroy was called before
contextDestroyed. (yoavs)
fix 30650: Added explicit comments on session equals()
implementation. (yoavs)
Coyote
fix 30770: Check that the browser actually sent a user-agent
header before using it. (billbarker)
Default charset not included in Content-Type response header
fix if no char encoding was specified (see Bugtraq 6152759).
(luehe)
Jasper
fix 29971: Commented out page directive is parsed. (luehe)
fix 30067: 'Scripting elements are disallowed here' exception
behind scriptless tag. (luehe)
fix 30073: NPE when compiling .jspx with broken xml format in
jspcmode. (luehe)
fix 30291: Smap for a tag should not include its body.
(kinman)
fix 30289: Incorrect Smap for multiple line java expression.
(kinman)
Cluster
Webapps
fix 29779: Admin/Examples SetCharacterEncodingFilter wrong
package. (yoavs)
fix 30354: manager-howto.xml used wrong Ant task. (yoavs)
To generate a diff of this commit:
cvs rdiff -r1.48 -r1.49 pkgsrc/www/jakarta-tomcat/Makefile
cvs rdiff -r1.12 -r1.13 pkgsrc/www/jakarta-tomcat/PLIST
cvs rdiff -r1.10 -r1.11 pkgsrc/www/jakarta-tomcat/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: David Brownlee <abs@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/27228 CVS commit: pkgsrc/doc
Date: Mon, 11 Oct 2004 21:17:07 +0000 (UTC)
Module Name: pkgsrc
Committed By: abs
Date: Mon Oct 11 21:17:07 UTC 2004
Modified Files:
pkgsrc/doc: CHANGES
Log Message:
Update jakarta-tomcat to 5.0.28.
Also, work around a horrible interaction with the gzip in NetBSD
2.0 (at least RC4). If gzip is used in a pipeline the tarfile
fails to extract (PR bin/27228)
Changes since 5.0.27:
General
fix 30239: Updated IIS how-to to link to Wiki page with
instrutions for IIS 5 and IIS 6 configurations. (yoavs)
fix 30238: Replaced isapi_redirector.dll isapi_redirect.dll
in installation script for consistency. (yoavs)
fix 29584: Enhanced and clarified JNDI documentation.
(yoavs)
fix 30245: Corrected Connector documentation to list
"address" as a common attribute. (yoavs)
fix 29826: Modified setclasspath.bat exit code to 1.
(yoavs)
update Updated status page, mostly rewritten. (yoavs)
update Updated Jakarta-Commons dependencies: BeanUtils to 1.7.0,
Collections to 3.1. (yoavs)
update Removed classic compiler directives from Ant build, as we
use modern anyways. (yoavs)
update Modified RELEASE-PLAN-5.0.html to indicate status given
start of work on Tomcat 5.next. (yoavs)
update Added command lines utilities version.sh, version.bat to
let you know what version is installed. (funkman)
Catalina
30602: Subject is not available during the first call
fix to the servlet which use the basic authentication
(jfarcand)
fix 29831: Added support for Boolean property to
BeanFactory. (yoavs)
fix 28875: Made ErrorReportValve use UTF-8 encoding by
default. (yoavs)
fix 30325: Only set CATALINA_HOME if not already set (in
bin/catalina.sh). (yoavs)
fix 30144: Made SSIServlet check resource MimeType before
using text/html and UTF-8 default. (yoavs)
29406: Made JAASRealm configurable as to whether it
fix should use the context ClassLoader or the default
ClassLoader by adding a useContextClassLoader boolean
attribute. (yoavs)
If ServletResponse.getWriter() is called and no char
encoding has been specified, set response char encoding to
fix default (ISO-8859-1) so that it is reflected in
getContentType() and Content-Type header, as required by
the Servlet Spec (Bugtraq 6152759) (luehe)
fix 29869: Better JMX/JSR77 support in StandardContext and
StandardWrapper. (remm)
update Fixed broken link to JK documenration from AJP Connector
reference page. (yoavs)
fix 30587: Typo in ExtendedAccessLogValve. (yoavs)
fix 30561: Broken restart of NamingService. (yoavs)
fix 29668: NPE in HostConfig, directory created for
deployed WAR instead of xml file. (yoavs)
fix 30179: Improved Bootstrap catalina.properties
handling. (yoavs)
fix 30762: Servlet#destroy was called before
contextDestroyed. (yoavs)
fix 30650: Added explicit comments on session equals()
implementation. (yoavs)
Coyote
fix 30770: Check that the browser actually sent a user-agent
header before using it. (billbarker)
Default charset not included in Content-Type response header
fix if no char encoding was specified (see Bugtraq 6152759).
(luehe)
Jasper
fix 29971: Commented out page directive is parsed. (luehe)
fix 30067: 'Scripting elements are disallowed here' exception
behind scriptless tag. (luehe)
fix 30073: NPE when compiling .jspx with broken xml format in
jspcmode. (luehe)
fix 30291: Smap for a tag should not include its body.
(kinman)
fix 30289: Incorrect Smap for multiple line java expression.
(kinman)
Cluster
Webapps
fix 29779: Admin/Examples SetCharacterEncodingFilter wrong
package. (yoavs)
fix 30354: manager-howto.xml used wrong Ant task. (yoavs)
To generate a diff of this commit:
cvs rdiff -r1.7406 -r1.7407 pkgsrc/doc/CHANGES
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: christos@zoulas.com (Christos Zoulas)
To: abs@absd.org, gnats-bugs@gnats.NetBSD.org
Cc:
Subject: Re: bin/27228: serious gzip/tar misfeature
Date: Mon, 11 Oct 2004 18:33:24 -0400
On Oct 11, 10:11pm, abs@absd.org (abs@absd.org) wrote:
-- Subject: bin/27228: serious gzip/tar misfeature
This is not a bug in gzip, it is a bug in tar, and has been fixed in head.
It affects only long filenames. The fact that it works in 1.6 is by pure
chance.
christos
From: David Brownlee <abs@absd.org>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: bin/27228: serious gzip/tar misfeature
Date: Tue, 12 Oct 2004 00:48:15 +0100 (BST)
On Mon, 11 Oct 2004, Christos Zoulas wrote:
> On Oct 11, 10:11pm, abs@absd.org (abs@absd.org) wrote:
> -- Subject: bin/27228: serious gzip/tar misfeature
>
> This is not a bug in gzip, it is a bug in tar, and has been fixed in head.
> It affects only long filenames. The fact that it works in 1.6 is by pure
> chance.
Ah, thanks. Is it slated for a 2.0 pullup?
--
David Brownlee -- abs@absd.org
From: christos@zoulas.com (Christos Zoulas)
To: David Brownlee <abs@absd.org>
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: bin/27228: serious gzip/tar misfeature
Date: Mon, 11 Oct 2004 23:03:27 -0400
On Oct 12, 12:48am, abs@absd.org (David Brownlee) wrote:
-- Subject: Re: bin/27228: serious gzip/tar misfeature
| On Mon, 11 Oct 2004, Christos Zoulas wrote:
|
| > On Oct 11, 10:11pm, abs@absd.org (abs@absd.org) wrote:
| > -- Subject: bin/27228: serious gzip/tar misfeature
| >
| > This is not a bug in gzip, it is a bug in tar, and has been fixed in head.
| > It affects only long filenames. The fact that it works in 1.6 is by pure
| > chance.
|
| Ah, thanks. Is it slated for a 2.0 pullup?
I don't think I requested one.
christos
State-Changed-From-To: open->closed
State-Changed-By: dsl@netbsd.org
State-Changed-When: Sat, 09 Sep 2006 21:59:06 +0000
State-Changed-Why:
Fixed ages ago, and pulled up intnto 2.0
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.