Hi David, I just tried switching to BASIC authentication and when you try and hit the zip file directly you get the login dialog box coming up but then the same error. Logging in first then trying to open the file has the same results as before.
If I try it with a bin file firefox gives me an "open with" option and IE treats it as text and just opens it in the browser itself, both after taking you via the login page. I didn't have an .iso to hand so haven't tried that. Any other ideas? Thanks, Kevin -----Original Message----- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: 23 August 2007 13:31 To: Tomcat Users List Subject: Re: Password protected zip files always corrupt Out of curiosity, what happen if you switch from FORM based loging to BASIC login (using http auth). I bet IE is getting mislead by the redirect that occurs from login form. html/gif/pdf/png/jpeg file are opened inside IE while zip are opened by external application. Did you try a a .bin or .iso etc? En l'instant précis du 23/08/07 14:11, McCrorie, Kevin M s'exprimait en ces termes: > Hi, > > I'm trying to allow my users to download a password protected zip file > from a link in an email but I keep being told the zip file is corrupt > when I do even though I know it's not. > > It's using standard tomcat form authentication, if you go to the front > page of the site and login normally and then right click on the link and > select "save target as" (or "save link as" in firefox) it works fine. > If you just click on the link to open the file in firefox, it works ok. > If you do the same thing in IE, you get an empty archive. > > However if you move the same file to an area outside of the protected > area, everything works fine. > > When I attempt to try the same thing with other file types, e.g. pdf, it > opens in the browser or downloads fine regardless of whether it's within > the protected area or not. If it is in the protected area, the user is > redirected to the login page first, as one would expect. > > I have already tried adding the following to my web.xml without any > luck: > > <mime-mapping> > <extension>zip</extension> > <mime-type>application/zip</mime-type> > </mime-mapping> > > > Any ideas? > > Thanks, > > Kevin > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://www.noooxml.org/ --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]