You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Donny R Rota <dr...@us.ibm.com> on 2005/05/06 21:13:02 UTC

Cannot download files with IE through tomcat. SSL with no-cache problems?

On Apache Tomcat/5.0.28, I've got SLL installed, and  whenever I try to 
download a doc file I get:

Some files can harm your computer.  If the file information below
looks suspicious, or you do not fully trust the source, do not open or
save this file
File name:   xxxxx.doc
File type:    Microsoft Word Document
From:        yyyyyyy.ibm.com
Open   Save Cancel More Info

I click Open and then the folloing file download dialog comes up:

Internet Explorer cannot download xxxx.doc from yyyyy.ibm.com
Internet Explorer was not able to open this Internet Site.  The requested 
site is either unavailable or cannot be
found. Please try again later.
OK

Downloading works fine in FireFox.
Downloading works fine if I turn off SSL.
We have an apache server (full httpd server) inhouse where this type of 
SSL download works fine too.

Is there a SSL no-cache setting I have to put in server.xml or something?

Thanks

...Don...
------------------------------------------------------------------
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
drrota@us.ibm.com 

Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

Posted by Tim Funk <fu...@joedog.org>.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27122

-Tim

Donny R Rota wrote:
> On Apache Tomcat/5.0.28, I've got SLL installed, and  whenever I try to 
> download a doc file I get:
> 
> Some files can harm your computer.  If the file information below
> looks suspicious, or you do not fully trust the source, do not open or
> save this file
> File name:   xxxxx.doc
> File type:    Microsoft Word Document
> From:        yyyyyyy.ibm.com
> Open   Save Cancel More Info
> 
> I click Open and then the folloing file download dialog comes up:
> 
> Internet Explorer cannot download xxxx.doc from yyyyy.ibm.com
> Internet Explorer was not able to open this Internet Site.  The requested 
> site is either unavailable or cannot be
> found. Please try again later.
> OK
> 
> Downloading works fine in FireFox.
> Downloading works fine if I turn off SSL.
> We have an apache server (full httpd server) inhouse where this type of 
> SSL download works fine too.
> 
> Is there a SSL no-cache setting I have to put in server.xml or something?
> 
> Thanks
> 
> ...Don...
> ------------------------------------------------------------------
> Don Rota, CTG Operations
> Rational Software, IBM Software Group
> 20 Maguire Road, Lexington, MA 02421-3104 
> Tel: 781 676 2655, Fax: 781 676 7645 
> drrota@us.ibm.com 
> 

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


Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

Posted by Larry Meadors <la...@gmail.com>.
Hey! I had that problem too, and the fix is as sexy as any windows fix: Edit 
the registry!

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet 
Settings]
"BypassSSLNoCacheCheck"=dword:00000001

This tells IE that it is OK to use cached data that was delivered over SSL. 

I know of no other way to set this value.

Larry


On 5/6/05, Donny R Rota <dr...@us.ibm.com> wrote:
> 
> On Apache Tomcat/5.0.28, I've got SLL installed, and whenever I try to
> download a doc file I get:
> 
> Some files can harm your computer. If the file information below
> looks suspicious, or you do not fully trust the source, do not open or
> save this file
> File name: xxxxx.doc
> File type: Microsoft Word Document
> From: yyyyyyy.ibm.com <http://yyyyyyy.ibm.com>
> Open Save Cancel More Info
> 
> I click Open and then the folloing file download dialog comes up:
> 
> Internet Explorer cannot download xxxx.doc from yyyyy.ibm.com<http://yyyyy.ibm.com>
> Internet Explorer was not able to open this Internet Site. The requested
> site is either unavailable or cannot be
> found. Please try again later.
> OK
> 
> Downloading works fine in FireFox.
> Downloading works fine if I turn off SSL.
> We have an apache server (full httpd server) inhouse where this type of
> SSL download works fine too.
> 
> Is there a SSL no-cache setting I have to put in server.xml or something?
> 
> Thanks
> 
> ...Don...
> ------------------------------------------------------------------
> Don Rota, CTG Operations
> Rational Software, IBM Software Group
> 20 Maguire Road, Lexington, MA 02421-3104
> Tel: 781 676 2655, Fax: 781 676 7645
> drrota@us.ibm.com
> 
>

Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

Posted by Mark Leone <mi...@cox.net>.
As posted by Tim Funk in reply to your original message, the details 
regarding this problem are found here:

http://issues.apache.org/bugzilla/show_bug.cgi?id=27122

Note that it is a problem with IE only, wherein IE can't handle no-cache 
cache directives, and Tomcat only sets these headers when serving 
content from a protected context. Also, if you're using other than form 
authentication, you need to substitute the class name for your 
authenticator in the <valve> configuration described below.

Donny R Rota wrote:

>I found the solution!  Posting here to save other people the problems I 
>had in finding this:
>
>Put this in your server.xml (or conf/Catatlina/localhost/*.xml) file:
>
>   <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
>          disableProxyCaching="false" />
>
>------------------------------------------------------------------
>Don Rota, CTG Operations
>Rational Software, IBM Software Group
>20 Maguire Road, Lexington, MA 02421-3104 
>Tel: 781 676 2655, Fax: 781 676 7645 
>drrota@us.ibm.com 
>
>
>
>Donny R Rota/Lexington/IBM@IBMUS 
>05/06/2005 03:13 PM
>Please respond to
>"Tomcat Users List"
>
>
>To
>"Tomcat Users List" <to...@jakarta.apache.org>
>cc
>
>Subject
>Cannot download files with IE through tomcat.  SSL with no-cache problems?
>
>
>
>
>
>
>On Apache Tomcat/5.0.28, I've got SLL installed, and  whenever I try to 
>download a doc file I get:
>
>Some files can harm your computer.  If the file information below
>looks suspicious, or you do not fully trust the source, do not open or
>save this file
>File name:   xxxxx.doc
>File type:    Microsoft Word Document
>From:        yyyyyyy.ibm.com
>Open   Save Cancel More Info
>
>I click Open and then the folloing file download dialog comes up:
>
>Internet Explorer cannot download xxxx.doc from yyyyy.ibm.com
>Internet Explorer was not able to open this Internet Site.  The requested 
>site is either unavailable or cannot be
>found. Please try again later.
>OK
>
>Downloading works fine in FireFox.
>Downloading works fine if I turn off SSL.
>We have an apache server (full httpd server) inhouse where this type of 
>SSL download works fine too.
>
>Is there a SSL no-cache setting I have to put in server.xml or something?
>
>Thanks
>
>...Don...
>------------------------------------------------------------------
>Don Rota, CTG Operations
>Rational Software, IBM Software Group
>20 Maguire Road, Lexington, MA 02421-3104 
>Tel: 781 676 2655, Fax: 781 676 7645 
>drrota@us.ibm.com 
>
>
>  
>

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


Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

Posted by Donny R Rota <dr...@us.ibm.com>.
I found the solution!  Posting here to save other people the problems I 
had in finding this:

Put this in your server.xml (or conf/Catatlina/localhost/*.xml) file:

   <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
          disableProxyCaching="false" />

------------------------------------------------------------------
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
drrota@us.ibm.com 



Donny R Rota/Lexington/IBM@IBMUS 
05/06/2005 03:13 PM
Please respond to
"Tomcat Users List"


To
"Tomcat Users List" <to...@jakarta.apache.org>
cc

Subject
Cannot download files with IE through tomcat.  SSL with no-cache problems?






On Apache Tomcat/5.0.28, I've got SLL installed, and  whenever I try to 
download a doc file I get:

Some files can harm your computer.  If the file information below
looks suspicious, or you do not fully trust the source, do not open or
save this file
File name:   xxxxx.doc
File type:    Microsoft Word Document
From:        yyyyyyy.ibm.com
Open   Save Cancel More Info

I click Open and then the folloing file download dialog comes up:

Internet Explorer cannot download xxxx.doc from yyyyy.ibm.com
Internet Explorer was not able to open this Internet Site.  The requested 
site is either unavailable or cannot be
found. Please try again later.
OK

Downloading works fine in FireFox.
Downloading works fine if I turn off SSL.
We have an apache server (full httpd server) inhouse where this type of 
SSL download works fine too.

Is there a SSL no-cache setting I have to put in server.xml or something?

Thanks

...Don...
------------------------------------------------------------------
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
drrota@us.ibm.com