<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/mod-gzip/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/mod-gzip/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 10 Jan 2009 00:00:19 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mod-gzip/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Vary header is sometimes truncated</title><link>https://sourceforge.net/p/mod-gzip/bugs/25/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When mod_gzip_send_vary is "on" and a reqheader is defined, mod_gzip will send a Vary header to apprise web caches that there may be different versions of the file available.&lt;/p&gt;
&lt;p&gt;The code which generates Vary headers for reqheader entries uses an uninitialized character array, which interacts badly with a broken implementation of mod_gzip_strncpy. The result is that the Vary header is sometimes truncated.&lt;/p&gt;
&lt;p&gt;The problem is on line 1232 of mod_gzip-1.3.26.1a/mod_gzip.c, in mod_gzip_strncpy:&lt;/p&gt;
&lt;p&gt;while(*s2 != 0 &amp;amp;&amp;amp; *s1 != 0 &amp;amp;&amp;amp; len &amp;lt;= l) {&lt;/p&gt;
&lt;p&gt;This line checks both the source and target strings for null bytes. However, the target string is unintialized and allocated from the stack, having a high percentage of random zeroes in it. This causes the copy to stop partway through sometimes.&lt;/p&gt;
&lt;p&gt;The easy way around this problem is to simply turn mod_gzip_send_vary off.&lt;/p&gt;
&lt;p&gt;There are several ways to actually fix the problem. The way I prefer is to use the libc strncpy and check the length of the string we're copying to avoid overflow, like so:&lt;/p&gt;
&lt;p&gt;char *mod_gzip_generate_vary_header(mod_gzip_conf *cfg,struct pool *p) {&lt;br /&gt;
int i = 0;&lt;br /&gt;
int len = 0;&lt;br /&gt;
char name[MOD_GZIP_IMAP_MAXNAMELEN + 2];&lt;br /&gt;
array_header *ary = ap_make_array(p,cfg-&amp;gt;imap_total_isreqheader+1,sizeof(char *));&lt;/p&gt;
&lt;p&gt;*((const char **)ap_push_array(ary)) = ap_pstrdup(p,"Accept-Encoding");&lt;/p&gt;
&lt;p&gt;for(i=0;i&amp;lt;cfg-&amp;gt;imap_total_entries;i++) {&lt;br /&gt;
if(cfg-&amp;gt;imap[i].type == MOD_GZIP_IMAP_ISREQHEADER) {&lt;br /&gt;
len = strstr(cfg-&amp;gt;imap[i].name,":") - cfg-&amp;gt;imap[i].name - 1;&lt;br /&gt;
if (len &amp;gt; MOD_GZIP_IMAP_MAXNAMELEN) {&lt;br /&gt;
/* Buffer is too small. Prefer to cache too many copies than send a broken header. */&lt;br /&gt;
continue;&lt;br /&gt;
}&lt;br /&gt;
strncpy(name,cfg-&amp;gt;imap[i].name,len);&lt;br /&gt;
name[len] = '\0';&lt;br /&gt;
*((const char **)ap_push_array(ary)) = ap_pstrdup(p,name);                                   &lt;br /&gt;
}                                                         &lt;br /&gt;
}&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;return ap_array_pstrcat(p,ary,',');&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ethan Fischer</dc:creator><pubDate>Sat, 10 Jan 2009 00:00:19 -0000</pubDate><guid>https://sourceforge.net592cc2d6bcccfc94be72910b316ad086bd9970f4</guid></item><item><title>incorrect NO_CONTENT_TYPE_IN_RESPONSE_HEADER</title><link>https://sourceforge.net/p/mod-gzip/bugs/24/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If the response header contains "content-type" instead &lt;br /&gt;
of "Content-type" mod_gzip returns an incorrect &lt;br /&gt;
NO_CONTENT_TYPE_IN_RESPONSE_HEADER.&lt;/p&gt;
&lt;p&gt;JDK 1.3.1_06 puts the all lower case "content-type" in &lt;br /&gt;
the reponse header if you use response.setContentType&lt;br /&gt;
("text/html").  If I change this to response.setHeader&lt;br /&gt;
("Content-type","text/html") or even "ConTent-typE" &lt;br /&gt;
gzip handles it correctly.  It only fails when the response &lt;br /&gt;
header has a lower case "c" in "content-type".&lt;/p&gt;
&lt;p&gt;The exact error logged is:&lt;br /&gt;
mod_gzip: &lt;br /&gt;
SEND_AS_IS:NO_CONTENT_TYPE_IN_RESPONSE_HEADER &lt;br /&gt;
In:0 -&amp;lt; Out:0 = 0 pct.&lt;/p&gt;
&lt;p&gt;I am running Apache 1.3.31 on Win2K, mod_gzip &lt;br /&gt;
1.3.26.1a.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 07 Jun 2004 16:40:34 -0000</pubDate><guid>https://sourceforge.net220273c8a856b5bbaa611d866ca152129bda10be</guid></item><item><title>HTTP Error 500</title><link>https://sourceforge.net/p/mod-gzip/bugs/23/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Mod_gzip works fine, but about 1 on 10 request is&lt;br /&gt;
finished with Apache 500 Error (Internal Server Error). &lt;/p&gt;
&lt;p&gt;My configuration is: Apache 1.3.23 PHP4.3.5 mod_gzip&lt;br /&gt;
1.3.26.1a&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 30 Mar 2004 14:29:07 -0000</pubDate><guid>https://sourceforge.net412b85ddbd0751a41d15fc74267aeb6f414641e9</guid></item><item><title>Makefile or Documentation Bug</title><link>https://sourceforge.net/p/mod-gzip/bugs/22/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Had to modify the makefile to compile under Apple OS X &lt;br /&gt;
10.3 (Panther).&lt;/p&gt;
&lt;p&gt;1: APXS location is /usr/sbin/apxs&lt;/p&gt;
&lt;p&gt;2: Changed Build target from&lt;br /&gt;
build:&lt;br /&gt;
$(APXS) -Wc,-Wall,-O3,-fomit-frame-pointer,-pipe -c &lt;br /&gt;
mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o &lt;br /&gt;
mod_gzip.so&lt;br /&gt;
to&lt;br /&gt;
build:&lt;br /&gt;
$(APXS) -Wc,-Wall,-O3,-fomit-frame-pointer,-pipe -c &lt;br /&gt;
mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c&lt;/p&gt;
&lt;p&gt;then it makes, installs, and works.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Croft</dc:creator><pubDate>Wed, 26 Nov 2003 04:39:22 -0000</pubDate><guid>https://sourceforge.net0f2be23700d4749b3b3f4e452f8e692460996ed0</guid></item><item><title>Duplicate Content-Length Header</title><link>https://sourceforge.net/p/mod-gzip/bugs/21/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br /&gt;
we use Apache as a web server frontend for the IBM &lt;br /&gt;
WebSphere Application Server. To improve performance &lt;br /&gt;
we would like to compress the dynamically generated &lt;br /&gt;
content with mod_gzip. &lt;br /&gt;
Although the response times with mod_gzip are in the &lt;br /&gt;
average much better than without compression, we &lt;br /&gt;
found out that some applications perfom really poor. It &lt;br /&gt;
seems as if the requests would &amp;amp;quot;hang&amp;amp;quot; for a long time &lt;br /&gt;
and suddenly the content was flushed to the client. &lt;br /&gt;
Without mod_gzip the same applications respond pretty &lt;br /&gt;
fast.&lt;br /&gt;
It turned out that under some circumstances, &lt;br /&gt;
WebSphere includes a &amp;amp;quot;content-length&amp;amp;quot; HTTP-Header in &lt;br /&gt;
the response. It is the number of bytes before &lt;br /&gt;
compression. It seems that mod_gzip does not recognize &lt;br /&gt;
this header (low cases!!) and does not replace it. &lt;br /&gt;
Instead it includes another HTTP-Header &amp;amp;quot;Content-&lt;br /&gt;
Length&amp;amp;quot; (the number of bytes after compression).&lt;/p&gt;
&lt;p&gt;The browser (we tested with MS Internet Explorer) &lt;br /&gt;
seems to interpret the first header (&amp;amp;quot;content-length&amp;amp;quot;) - &lt;br /&gt;
generally less bytes than the actual response has - and &lt;br /&gt;
waits for the rest of the bytes until it is timed out. &lt;/p&gt;
&lt;p&gt;Correct me if I'm wrong, but as far as I know the HTTP &lt;br /&gt;
protocol does not specify that HTTP-Headers have to be &lt;br /&gt;
written in upper, lower or mixed case. Accordingly &lt;br /&gt;
the &amp;amp;quot;content-length&amp;amp;quot;-Header should be encountered and &lt;br /&gt;
replaced.&lt;br /&gt;
Since mod_gzip uses the Apache API (ap_table_set())&lt;br /&gt;
this could also be a bug in the Apache API.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;
Thomas Nolting&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Nolting</dc:creator><pubDate>Mon, 24 Nov 2003 15:47:56 -0000</pubDate><guid>https://sourceforge.net54cdb30e9ceeceebdd9d6bec5de133bb1b6dc557</guid></item><item><title>remote exploit (with debug mode)</title><link>https://sourceforge.net/p/mod-gzip/bugs/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="http://www.securityfocus.com/archive/1/345094/2003-11-20/2003-11-26/0" rel="nofollow"&gt;http://www.securityfocus.com/archive/1/345094/2003-11-20/2003-11-26/0&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 23 Nov 2003 09:26:10 -0000</pubDate><guid>https://sourceforge.net12e5f0ce4499f82dc49c1c76872d03c52ae50253</guid></item><item><title>apache/mod_rewrite/mod_gzip and Expect: 100 header</title><link>https://sourceforge.net/p/mod-gzip/bugs/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If the Expect: 100-continue header is passed in a &lt;br /&gt;
request to the apache server &lt;br /&gt;
which has mod_rewrite configured to forward the &lt;br /&gt;
request to an IIS server the &lt;br /&gt;
resulting page is never zipped by mod_gzip.  Removing &lt;br /&gt;
the Expect: 100 header &lt;br /&gt;
returns a zipped page.  The mod_gzip log looks like this.&lt;/p&gt;
&lt;p&gt;Successful zip&lt;br /&gt;
10.254.33.174 - - [16/Oct/2003:18:10:24 -&lt;br /&gt;
0700] &amp;amp;quot;qagateway01.qa.myco.com &lt;br /&gt;
POST /ws/api.dll HTTP/1.1&amp;amp;quot; 200 477 mod_gzip: OK &lt;br /&gt;
In:1258 -&amp;amp;lt; Out:262 = 80 pct.&lt;/p&gt;
&lt;p&gt;Unsuccessful zip&lt;br /&gt;
10.254.33.174 - - [16/Oct/2003:18:54:32 -&lt;br /&gt;
0700] &amp;amp;quot;qagateway01.qa.myco.com &lt;br /&gt;
POST /ws/api.dll HTTP/1.1&amp;amp;quot; 200 1480 mod_gzip: &lt;br /&gt;
SEND_AS_IS:NO_200 In:0 -&amp;amp;lt; Out:0 = &lt;br /&gt;
0 pct.&lt;/p&gt;
&lt;p&gt;The headers in the unsuccessful response look like this.&lt;br /&gt;
It's difficult to &lt;br /&gt;
tell if both headers are part of the same response.&lt;/p&gt;
&lt;p&gt;HTTP/1.1 100 Continue&lt;/p&gt;
&lt;p&gt;HTTP/1.1 200 OK&lt;br /&gt;
Date: Fri, 17 Oct 2003 01:30:18 GMT&lt;br /&gt;
Server: Microsoft-IIS/4.0&lt;br /&gt;
Content-Type: text/xml&lt;br /&gt;
Content-length: 1258&lt;br /&gt;
X-Cache: MISS from qagateway01.qa.ebay.com&lt;br /&gt;
Connection: close&lt;/p&gt;
&lt;p&gt;The request is also zipped if mod_rewrite is removed &lt;br /&gt;
from the equation &lt;br /&gt;
regardless of the Expect: 100-continue header.&lt;/p&gt;
&lt;p&gt;Unfortunately Expect: 100-continue is required in &lt;br /&gt;
MS .Net httpwebrequest class &lt;br /&gt;
but I was also able to replicate this bug with a perl &lt;br /&gt;
script.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dallas Beek</dc:creator><pubDate>Mon, 17 Nov 2003 20:19:18 -0000</pubDate><guid>https://sourceforge.net654968c085e310b8019dfbbd0c20b714efa61475</guid></item><item><title>handlers called twice?</title><link>https://sourceforge.net/p/mod-gzip/bugs/18/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When mod_gzip is enabled, some of my other Apache &lt;br /&gt;
handlers are called twice (particularly, the PerlAccessHandler &lt;br /&gt;
handlers).  Is there a way to prevent this?&lt;/p&gt;
&lt;p&gt;In the handlers, I am already doing a return DECLINED unless &lt;br /&gt;
$r-&amp;amp;gt;is_main, so it is not subrequests, but actually two main &lt;br /&gt;
requests to my handlers.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Nandor</dc:creator><pubDate>Fri, 14 Nov 2003 18:10:08 -0000</pubDate><guid>https://sourceforge.net1e9658ccd9dfc1e00426d5639c750d879057f701</guid></item><item><title>Apache compilation module</title><link>https://sourceforge.net/p/mod-gzip/bugs/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Apache cant compile due to the mod_gzip.c (1.26.***)&lt;/p&gt;
&lt;p&gt;Here is my compilation line : &lt;br /&gt;
./configure&lt;br /&gt;
--prefix=/usr/local/apache  &lt;br /&gt;
--activate-module=src/modules/php4/libphp4.a   &lt;br /&gt;
--enable-suexec   &lt;br /&gt;
--suexec-caller=nobody   &lt;br /&gt;
--suexec-userdir=www   &lt;br /&gt;
--suexec-docroot=/home  &lt;br /&gt;
--suexec-logfile=/usr/local/apache/logs/cgi.log   &lt;br /&gt;
--suexec-uidmin=99   &lt;br /&gt;
--suexec-gidmin=99   &lt;br /&gt;
--suexec-safepath=/usr/local/bin:/usr/bin:/bin   &lt;br /&gt;
--enable-module=so   &lt;br /&gt;
--enable-module=rewrite  &lt;br /&gt;
--add-module=src/modules/extra/mod_gzip.c   &lt;br /&gt;
--enable-module=ssl   &lt;br /&gt;
--enable-module=vhost_alias  &lt;br /&gt;
--add-module=src/modules/extra/mod_bandwidth.c&lt;/p&gt;
&lt;p&gt;make fails at the last compilation : httpd :&lt;/p&gt;
&lt;p&gt;modules/extra/libextra.a(mod_gzip.o): In function&lt;br /&gt;
`mod_gzip_encode_and_transmit':&lt;br /&gt;
mod_gzip.o(.text+0x5968): undefined reference to `gzp_main'&lt;br /&gt;
modules/extra/libextra.a(mod_gzip.o): In function&lt;br /&gt;
`mod_gzip_compress_file':&lt;br /&gt;
mod_gzip.o(.text+0x62a7): undefined reference to `gzp_main'&lt;/p&gt;
&lt;p&gt;please help me... &lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Florent : superfc@superfc.dyndns.org&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 22 Jul 2003 09:49:25 -0000</pubDate><guid>https://sourceforge.net4711c39017ce100302f578273ef41de8e0fa318d</guid></item><item><title>Apache 1.3.28 - Increased TRANSMIT_ERRORs</title><link>https://sourceforge.net/p/mod-gzip/bugs/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Might be specific to my system, but since upgrading to Apache &lt;br /&gt;
1.3.28 I'm getting increased TRANSMIT_ERRORS on my &lt;br /&gt;
slashcode based site (Redhat 7.1). Example: &lt;/p&gt;
&lt;p&gt;[Sun Jul 20 17:46:57 2003] [error] mod_gzip: &lt;br /&gt;
TRANSMIT_ERROR:ISMEM:104 &lt;br /&gt;
[Sun Jul 20 17:51:01 2003] [error] mod_gzip: &lt;br /&gt;
TRANSMIT_ERROR:32 &lt;/p&gt;
&lt;p&gt;Using Konquerer at home the browser will hang on a page &lt;br /&gt;
request on average once every 20 page loads and after &lt;br /&gt;
cancelling the request the transmit error will occur. &lt;/p&gt;
&lt;p&gt;I have upgraded to mod_gzip/1.3.26.1a (DSO) but it still &lt;br /&gt;
occurs. I have not had any problems with Apache upgrades &amp;amp;amp; &lt;br /&gt;
mod_gzip in the past. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David T.</dc:creator><pubDate>Sun, 20 Jul 2003 18:12:06 -0000</pubDate><guid>https://sourceforge.net5882221617725dac1f01323a5cae9dbf132c1a2b</guid></item></channel></rss>