Re: IIS 6 Windows 2003 SP1 RC 1289 Download bug
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 01/03/05
- Next message: Jeremy Smith: "Re: Need help with system event log error on IIS 6.0"
- Previous message: David Shorthouse: "WebDAV folders hang on client"
- In reply to: Techno Mage: "Re: IIS 6 Windows 2003 SP1 RC 1289 Download bug"
- Next in thread: Techno Mage: "Re: IIS 6 Windows 2003 SP1 RC 1289 Download bug"
- Reply: Techno Mage: "Re: IIS 6 Windows 2003 SP1 RC 1289 Download bug"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 3 Jan 2005 11:10:04 -0800
I see that I gave too many details such that it confused you, so let me
explain it in another way.
The URL you use to request a resource is no indication of whether it is
"direct" (i.e. static file) or not. What matters is if you have a ScriptMap
applicable to that resource's file extension. If you have a Scriptmap AND
Execute Permissions allow at least "Scripts", then it is dynamic. Otherwise,
it is static.
Thus, http://server/windows/files/os/XP/WindowsXP-KB835935-SP2-ENU.exe is
normally a directly static file download UNLESS you have a Scriptmap of .exe
or * present. Then it is a dynamic file. Of course, files sent via ASPX
(a scriptmap itself) is also considered dynamic.
In any case, here are my results:
1. /xpsp2.exe - static file download that is compressed - successful
2. /download.aspx (of /xpsp2.exe) - dynamic file download that is
compressed - successful
3. Same static/dynamic download with compression turned off - successful
By successful, I mean that I did a byte-comparison of the downloaded file
with the original resource and then made sure it executed.
I took the ASPX code you gave me and made one modification to it -- changed
"Content-Type: application/zip" to "Content-Type: application/octet-stream"
. If I allowed .exe to have an incorrect MIME map of "application/zip" or
allowed the ASPX page to add "Content-Type: application/zip", then I get an
error on downloading -- but that is expected since the wrong Content-Type
was sent.
>From my results using your code, it looks like neither IIS6 nor compression
are problems. Incorrect Content-Type which causes the browser to
misinterpret the file download looks like your issue.
Since IIS does not install with application/zip MIME Map for .exe nor does
ASPX add application/zip to .exe download (I checked this on my default
clean installation of RC1), I conclude this is user error of some sort.
-- //David IIS http://blogs.msdn.com/David.Wang This posting is provided "AS IS" with no warranties, and confers no rights. // "Techno Mage" <TechnoMage@discussions.microsoft.com> wrote in message news:A93F21A2-D5AB-4A06-8DD9-1DFEE8D64C0D@microsoft.com... I fail to see how http://server/windows/files/os/XP/WindowsXP-KB835935-SP2-ENU.exe Is not a direct link, and is some how running through something tell me if i remove application/zip from the mime map it says 404 i can however change it to application/exe and it downloads But it never download correctly with the built in compression I think this bug is somehow related to not being able to open a download with winwip 9 on normal 2003 (NO sp1) PS the ASPX does send a file size THE ASPX IS THE FIX NOT THE PROBLEM
- Next message: Jeremy Smith: "Re: Need help with system event log error on IIS 6.0"
- Previous message: David Shorthouse: "WebDAV folders hang on client"
- In reply to: Techno Mage: "Re: IIS 6 Windows 2003 SP1 RC 1289 Download bug"
- Next in thread: Techno Mage: "Re: IIS 6 Windows 2003 SP1 RC 1289 Download bug"
- Reply: Techno Mage: "Re: IIS 6 Windows 2003 SP1 RC 1289 Download bug"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|