[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

mod_deflate pitfall

From: Michael Kefeder <mike_at_weird-birds.org>
Date: 2002-11-25 13:40:09 CET

Hi

Today i got a strange error from the svn client when i tried to commit:

OPTIONS of /htd/sysprog1a: Compressed stream invalid

Strange because commiting worked until today, so i tried to find the source
of this error. The message seems to come from the neon lib, and is
content-compression related. When i totally disabled mod_deflate in apache
commiting worked again.
Then I spotted the problem - the docs of apache2 suggest the following
directives for content-compression:

<IfModule mod_deflate.c>
    SetEnv gzip-only-text/html 1
    SetOutputFilter DEFLATE
    DeflateFilterNote ratio
</IfModule>

Where "SetEnv gzip-only-text/html 1" is the bad boy. When this is set svn
expects gzipped data but doesn't get it, because only text/html is
compressed (needed for buggy browsers).
To keep this setting for my webpages i set the following for the svn
subdomain

SetEnv gzip-only-text/html 0
SetOutputFilter DEFLATE

and with that setting the svn client works again.
Is my obversation/fix correct? I'm not 100% sure because commiting worked
until today w/o changing the config since the svn setup. If yes, i think it
would help others if that note would make it to the svn installation docs.
Yours
 Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 25 13:12:31 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.