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]

Reply via email to