tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wade Chandler <wchand...@redesetgrow.com>
Subject Re: Slightly OT: Yet another IE woe...
Date Wed, 08 Dec 2004 04:17:56 GMT
Robert Hunt wrote:
> Weider still, I comment out only the <user-data-constraint> tag and the download
works fine; no-cache http headers are still in place.  So, it may be something with https,
but how?
> 
> -- RH
> 
> 
> ----- Original Message ----- 
> From: rh
> To: tc-u
> Sent: Tuesday, December 07, 2004 10:42 PM
> Subject: Slightly OT: Yet another IE woe...
> 
> 
> Under Tomcat 5.0.25, I've got a web-app creating a file on-the-fly.  I've 
> got the servlet "surrounded" by the following security constraint:
> ------------------------------------------
>  <security-constraint>
>   <web-resource-collection>
>    <url-pattern>/registration/file.xls</url-pattern>
>   </web-resource-collection>
>   <auth-constraint>
>    <role-name>20040490</role-name>
>   </auth-constraint>
>   <user-data-constraint>
>    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
>   </user-data-constraint>
>  </security-constraint>
> ------------------------------------------
> 
> 
> Without the security constraint, IE (6.0) can save the file just fine.  With 
> the constraint, IE gags with the error "the file could not be written to 
> cache."  I noticed that Tomcat was adding these items to the HTTP response:
> | 20041207220031203043 | contentLength            | -1
> | 20041207220031203043 | contentType              | application/vnd.ms-excel
> | 20041207220031203043 | hdr.Cache-Control[0]     | no-cache
> | 20041207220031203043 | hdr.Content-Type[0]      | application/vnd.ms-excel
> | 20041207220031203043 | hdr.Date[0]              | Wed, 08 Dec 2004 
> 03:00:31 GMT
> | 20041207220031203043 | hdr.Expires[0]           | Wed, 31 Dec 1969 
> 19:00:00 EST
> | 20041207220031203043 | hdr.Pragma[0]            | No-cache
> | 20041207220031203043 | hdr.Server[0]            | Apache-Coyote/1.1
> | 20041207220031203043 | hdr.Transfer-Encoding[0] | chunked
> | 20041207220031203043 | status                   | 200
> 
> How can one get IE to download a file, over a HTTPs connection without 
> having to strip the "no-cache" headers?   Is there a way or will I have to 
> filter the no-cache headers?
> 
> 
> 
> 
> 
There was in at least one version of IE a bug when the stream was too 
large in an https request.  I ran into this with somethings I was doing 
at one time.  Does it work if you try it over an http url?

Wade


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


Mime
View raw message