Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87D54CEA6 for ; Mon, 3 Jun 2013 18:28:57 +0000 (UTC) Received: (qmail 80604 invoked by uid 500); 3 Jun 2013 18:28:54 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 80298 invoked by uid 500); 3 Jun 2013 18:28:53 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 80284 invoked by uid 99); 3 Jun 2013 18:28:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 18:28:52 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.25.134.85] (HELO mailout11.t-online.de) (194.25.134.85) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 18:28:46 +0000 Received: from fwd14.aul.t-online.de (fwd14.aul.t-online.de ) by mailout11.t-online.de with smtp id 1UjZUV-0008VO-Ga; Mon, 03 Jun 2013 20:28:23 +0200 Received: from localhost (ZSZ3p8Zf8h2BiqOadvVxkQfyPdxDYiCxss93IoDOU+-mwlA8LN1BGDdZsPG5EAGwS5@[172.20.101.121]) by fwd14.aul.t-online.de with esmtp id 1UjZUS-42vx560; Mon, 3 Jun 2013 20:28:20 +0200 MIME-Version: 1.0 Received: from 132.199.230.71:46093 by cmpweb15.aul.t-online.de with HTTP/1.1 (NGCS V4-0-18-0 on API V3-11-27-0) In-Reply-To: <7215BA462D00D343B2837F9113F0131F016FCABDCB@POSTOFFICE02.polydyne.com> References: <7215BA462D00D343B2837F9113F0131F016FCABDCB@POSTOFFICE02.polydyne.com> Date: Mon, 03 Jun 2013 20:28:20 +0200 Reply-To: "verlag.preisser@t-online.de" To: "Tomcat Users List" X-Priority: 3 X-UMS: email X-Mailer: DTAG NGCS V4-0-18-0 Subject: Re: IE 8 and before refusing to download files (I hate IE) From: "verlag.preisser@t-online.de" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Message-ID: <1UjZUS-42vx560@fwd14.aul.t-online.de> X-ID: ZSZ3p8Zf8h2BiqOadvVxkQfyPdxDYiCxss93IoDOU+-mwlA8LN1BGDdZsPG5EAGwS5@t-dialin.net X-TOI-MSGID: 46983b78-d01e-4715-9a27-eeed0d69b8eb X-Virus-Checked: Checked by ClamAV on apache.org Hi, -----Original-Nachricht----- > Von: Jeffrey Janner > An: 'Tomcat Users List' > Ran into an interesting problem today. It seems that IE8 and before > no longer likes how we are sending BLOB files. > > Worked last week as far as we can tell. Works fine for IE9+ and other > browsers, but IE8 is suddenly giving us an error message, as though it > is ignoring the response headers. > > I'm not going to completely rule out the possibility it is in our code > somewhere, but we haven't found it yet. We did also upgrade out app > over the weekend, but the problem didn't show up in our test > environment (as far as we can tell). > > Here is the relevant code: > [...] > > Works great if the MimeType is text/html, but anything else generates > an error. > > The getContent routine reads from the BLOB and copies it to the > response output stream. > > None of this code has changed, and the access log shows a 200 > response and the full number of bytes of the file. > > Anybody have any ideas? > > Server1 specs: Tomcat 6.0.33/Java 1.6.0_33/Windows 2003 SP2 > Server2 specs: Tomcat 6.0.36/Java 1.6.0_34/Windows 2008 R2/SP1 can you give an example of the actual HTTP response headers that are sent to the client? I just tested that the following response works with IE8 on WinXP and IE10 using its IE8-Mode on WIndows 8: HTTP/1.1 200 OK Transfer-Encoding: chunked Content-Type: application/x-zip-compressed Server: Microsoft-IIS/7.5 Content-Disposition: attachment; filename=Portal.zip Date: Mon, 03 Jun 2013 18:14:14 GMT [...] This is generated by a Servlet on Tomcat 7.0.40 that sets the Content-Type and Content-Disposition headers and then writes bytes to the respone's OutputStream (the response is served by IIS/7.5 using ISAPI Redirector). For Content-Disposition, I'm using javax.mail.internet.ContentDisposition which should automatically add necessary escaping and quoting to the "filename:" part. I also tested with IE10's IE7-Mode that is used when activating Compatibility View and no X-UA-Compatible header is present that tells IE to use it's highest browser mode (like "X-UA-Compatible: IE=Edge"). (As an aside, for my websites I don't support any IE below IE9... ;-) However, I use the "X-UA-Compatible: IE=Edge" header to prevent IE to use the compatibility mode, which can happen if Microsoft suddenly decides to add your site to its "compatibility view list", or sometimes if IE is embedded as ActiveX control etc...) Regards, Konstantin Preißer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org