Closed Bug 145758 Opened 22 years ago Closed 22 years ago

Winzip can not handle certain GZipped TAR files downloaded by Mozilla

Categories

(Core Graveyard :: File Handling, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 132702

People

(Reporter: jferris, Assigned: law)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510 BuildID: 2002051006 When using the link in the URL (http://php.holtsmark.no/base64img/), click the "Download" button on the page. It downloads the file (you can either save to disk or open with Winzip), but the file will not open. The error message from WinZip reads "Error Reading Header after 0 Entries". Downloading the file in another browser works as expected. Reproducible: Always Steps to Reproduce: 1. Visit http://php.holtsmark.no/base64img/ with build 2002051006 2. Click download button 3. Open with Winzip Actual Results: Error Message from Winzip regarding malformed headers in downloaded file: "Error Reading Header after 0 Entries" Expected Results: Should have opened the TAR Archive.
wget -s output: HTTP/1.1 200 OK Date: Mon, 20 May 2002 18:42:40 GMT Server: Apache/1.3.24 (Unix) PHP/4.2.0 mod_ssl/2.8.8 OpenSSL/0.9.6a Last-Modified: Wed, 27 Mar 2002 18:11:20 GMT ETag: "b408b-2a27-3ca20b48" Accept-Ranges: bytes Content-Length: 10791 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: application/x-tar Content-Encoding: x-gzip server problem. they didn't tell us not to pass .gz to the external handler.
Whiteboard: DUPEME
*** Bug 151201 has been marked as a duplicate of this bug. ***
OK. so I have no WinZip, but if I save the file to disk on Linux I can gunzip and untar just fine... Are you saving to disk and then invoking WinZip on the file? Or are you triggering WinZip directly as a helper application?
the problem only occurs when WinZip is triggered as a helper application. bug nr 151201 (http://bugzilla.mozilla.org/show_bug.cgi?id=151201) has been marked as a duplicate, but contains some useful info: > Mozilla 1.0/Win2K doesn't know the extension .tgz > You could define it in preferences->helper applications, but until I did that, > I got this error: > The mime type of the download is "application/x-gzip", so if I open the > download directly from Mozilla, WinZip is launched. WinZip shows that the tgz- > file consists of one tar-file, but cannot open it. > Because the original .tgz is correct, Mozilla does something wrong.
Does the server send a different filename on Windows? Because on Linux it sends a .tar.gz and so bug 151201 does not apply....
yeah, mozilla is saving it to base64img.v2.2.tar.gz.tar reporter, rename it to base64img.v2.2.tar.gz and try opening it with winzip dupe of bug 120327, lets all pray mozilla will finally stop screwing with filenames
This particular bit if screwing is utterly necessary to prevent certain security exploits in the current helper app architecture on Windows (yay ShellExecute()!), so don't hold out too much hope.... until someone takes the time to redesign it from scratch. This is basically bug 132702; marking it duplicate. *** This bug has been marked as a duplicate of 132702 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
To clarify, the reason it won't open with winzip directly is bug 132702 (hard to fix). The reason it will not open with Winzip if you save it first is bug 120327 (much easier to fix).
Whiteboard: DUPEME
marking verified as a duplicate. if you decide to reopen this bug, please clarify why. search string for bugspam removal: SalviaGuaranitica
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.