Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 47873 invoked from network); 17 Feb 2004 16:47:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Feb 2004 16:47:49 -0000 Received: (qmail 63892 invoked by uid 500); 17 Feb 2004 16:47:18 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 63816 invoked by uid 500); 17 Feb 2004 16:47:17 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 63745 invoked from network); 17 Feb 2004 16:47:17 -0000 Received: from unknown (HELO eads-av-smtp1.gmessaging.net) (194.51.201.2) by daedalus.apache.org with SMTP; 17 Feb 2004 16:47:17 -0000 Received: from conversion-daemon.eads-relay1.cesson.gm-adm by eads-av-smtp1.gmessaging.net (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) id <0HT800801M0P56@eads-av-smtp1.gmessaging.net> (original mail from loic.ebrard@airbus.com) for tomcat-dev@jakarta.apache.org; Tue, 17 Feb 2004 17:40:24 +0100 (MET) Received: from tocomexc1e.airbus.aeromatra.com ([172.24.21.17]) by eads-av-smtp1.gmessaging.net (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with SMTP id <0HT800BCYMB7DZ@eads-av-smtp1.gmessaging.net> for tomcat-dev@jakarta.apache.org; Tue, 17 Feb 2004 17:40:24 +0100 (MET) Received: by TOCOMEXC1E with Internet Mail Service (5.5.2657.72) id <1MWT7FP1>; Tue, 17 Feb 2004 17:41:49 +0100 Date: Tue, 17 Feb 2004 17:41:49 +0100 From: EBRARD Loic Subject: RE: pdf automatic opening problem To: 'Tomcat Developers List' Message-id: <95EA2B9D9300D711958E00508BCF33C706B120FC@TOCOMEXC30> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-type: multipart/mixed; boundary="Boundary_(ID_jTJ3ULq0MwxWf902f0G3nQ)" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --Boundary_(ID_jTJ3ULq0MwxWf902f0G3nQ) Content-type: multipart/alternative; boundary="Boundary_(ID_oMxGUVB+jPEsRMLgT0aozQ)" --Boundary_(ID_oMxGUVB+jPEsRMLgT0aozQ) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable thanks for this idea...=20 the fact is that i have to disable mod_deflate=20 not by : SetEnvIfNoCase REQUEST_URI .... but by : Content-Type: application/pdf i'm actually trying : AddAltByType "pdf" application/pdf other idea welcome -----Message d'origine----- De : Laurent Blume [mailto:laurent@elanor.org] Envoy=E9 : mardi 17 f=E9vrier 2004 15:53 =C0 : Tomcat Developers List Objet : Re: pdf automatic opening problem Quoting EBRARD Loic : > Hi every, > is anabody found a solution for probem of opening a pdf send from > apache-tomcat in mod_deflate ? > the disease appear like this : ie receive a pdf file that would be = open in > adobe... however there is the window : "save file to ..." opening = instead. > if i disable mod_deflate... all works fine... >=20 > i'm actually in - apache 2.0.48 > - tomcat 4 > - jk2 > - mod_deflate >=20 > I tried to disable deflate on pdf with those sentences : > SetEnvIfNoCase Request_URI application/postscript application/pdf* = no-gzip > dont-vary > SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary > but the apache serveur seem to send a servlet that is not reconize as > containing a pdf file.. Hello, I just met the problem today, on a similar configuration, and for me, = the fix that you applied worked. I actually just modified a bit the sample configuration for = mod_deflate: # Don't compress images SetEnvIfNoCase Request_URI \ \.(?:gif|jpe?g|png|pdf)$ no-gzip dont-vary restarted Apache, and that was it. In my case, the PDF file was a real, static one, not generated by a = servlet. Maybe you can have a look at the actual packets exchanged to see what = is the difference in header with and without mod_deflate? Laurent --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org This mail has originated outside your organization, either from an external partner or the Global Internet.=20 Keep this in mind if you answer this message. --Boundary_(ID_oMxGUVB+jPEsRMLgT0aozQ) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: quoted-printable RE: pdf automatic opening problem

thanks for this idea...

the fact is that i have to disable mod_deflate =
not by : SetEnvIfNoCase REQUEST_URI ....
but by : Content-Type: application/pdf

i'm actually trying : AddAltByType "pdf" = application/pdf
other idea welcome

-----Message d'origine-----
De : Laurent Blume [mailto:laurent@elanor.org]=
Envoy=E9 : mardi 17 f=E9vrier 2004 15:53
=C0 : Tomcat Developers List
Objet : Re: pdf automatic opening problem


Quoting EBRARD Loic = <loic.ebrard@airbus.com>:

> Hi every,
> is anabody found a solution for probem of = opening a pdf send from
> apache-tomcat in mod_deflate ?
> the disease appear like this : ie receive a pdf = file that would be open in
> adobe... however there is the window : = "save file to ..." opening instead.
> if i disable mod_deflate... all works = fine...
>
> i'm actually in       = - apache 2.0.48
>       =         - tomcat 4
>       =         - jk2
>       =         - mod_deflate
>
> I tried to disable deflate on pdf with those = sentences :
> SetEnvIfNoCase Request_URI = application/postscript application/pdf* no-gzip
> dont-vary
> SetEnvIfNoCase Request_URI \.pdf$ no-gzip = dont-vary
> but the apache serveur seem to send a servlet = that is not reconize as
> containing a pdf file..

Hello,

I just met the problem today, on a similar = configuration, and for me, the fix
that you applied worked.

I actually just modified a bit the sample = configuration for mod_deflate:

  # Don't compress images
  SetEnvIfNoCase Request_URI \
  \.(?:gif|jpe?g|png|pdf)$ no-gzip = dont-vary

restarted Apache, and that was it.

In my case, the PDF file was a real, static one, not = generated by a servlet.

Maybe you can have a look at the actual packets = exchanged to see what is the
difference in header with and without = mod_deflate?

Laurent


---------------------------------------------------------------= ------
To unsubscribe, e-mail: = tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: = tomcat-dev-help@jakarta.apache.org


This mail has originated outside your organization,
either from an external partner or the Global = Internet.
Keep this in mind if you answer this message.

= --Boundary_(ID_oMxGUVB+jPEsRMLgT0aozQ)-- --Boundary_(ID_jTJ3ULq0MwxWf902f0G3nQ) Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org --Boundary_(ID_jTJ3ULq0MwxWf902f0G3nQ)--