Closed
Bug 163715
Opened 23 years ago
Closed 22 years ago
downloaded file has zero length
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 162271
People
(Reporter: hcoomes, Assigned: law)
Details
Attachments
(1 file)
590 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1b) Gecko/20020818
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1b) Gecko/20020818
This problem appears both on Sun described above and on PC/Win2000 using
Mozilla 5.0 (Windows, U, Windows NT 5.0, en-US, rv 1.1b (Gecko 20020805)
I was able to download the file described below with IE 6.0, so this does
not appear to be a server problem.
Reproducible: Always
Steps to Reproduce:
1.Display http://www.sun.com/solutions/blueprints/tools/
2.Click on link "fspc-2.tar.Z and sidekick.sh.Z"
3.In the javascript popup window accept the license
4.Click on "Download sidekick.sh" in the popup window to download it.
5.Save file to disk
Actual Results:
File appears to download but has zero length.
Expected Results:
Downloaded a 5038 byte file in compressed (.Z) format
Note: I can download the other file on the same popup page successfully
in both above versions of Mozilla.
Comment 1•23 years ago
|
||
Confirming MOX 2002-08-18-03
I think it is a cookie or script error. Both files give this when checking:
curl --head "http://www.sun.com/blueprints/tools/sidekick.sh.Z"
HTTP/1.1 302 Moved Temporarily
Server: Netscape-Enterprise/4.1
Date: Tue, 20 Aug 2002 21:14:16 GMT
Location: /solutions/blueprints/tools/sidekick.sh.Z
Content-length: 0
Content-type: text/html
Connection: close
The actual location is somewhere else, determined by the server.
Reporter | ||
Comment 2•23 years ago
|
||
For what its worth, here is the output from wget when downloading the file:
wget -d --save-cookies wget.cookies
http://www.sun.com/blueprints/tools/sidekick.sh.Z
DEBUG output created by Wget 1.8.2 on solaris2.8.
--21:45:25-- http://www.sun.com/blueprints/tools/sidekick.sh.Z
=> `sidekick.sh.Z'
Resolving www.sun.com... done.
Caching www.sun.com => 64.124.140.181
Connecting to www.sun.com[64.124.140.181]:80... connected.
Created socket 5.
Releasing 55b28 (new refcount 1).
---request begin---
GET /blueprints/tools/sidekick.sh.Z HTTP/1.0
User-Agent: Wget/1.8.2
Host: www.sun.com
Accept: */*
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response... HTTP/1.1 302 Moved Temporarily
Server: Netscape-Enterprise/4.1
Date: Wed, 21 Aug 2002 01:45:23 GMT
Location: /solutions/blueprints/tools/sidekick.sh.Z
Content-length: 0
Content-type: text/html
Connection: close
Location: /solutions/blueprints/tools/sidekick.sh.Z [following]
Closing fd 5
--21:45:26-- http://www.sun.com/solutions/blueprints/tools/sidekick.sh.Z
=> `sidekick.sh.Z'
Found www.sun.com in host_name_addresses_map (55b28)
Connecting to www.sun.com[64.124.140.181]:80... connected.
Created socket 5.
Releasing 55b28 (new refcount 1).
---request begin---
GET /solutions/blueprints/tools/sidekick.sh.Z HTTP/1.0
User-Agent: Wget/1.8.2
Host: www.sun.com
Accept: */*
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response... HTTP/1.1 200 OK
Server: Netscape-Enterprise/4.1
Date: Wed, 21 Aug 2002 01:45:25 GMT
Set-Cookie: SUN_ID=12.220.85.89:160651029894326; EXPIRES=Wednesday, 31-Dec-2025
23:59:59 GMT; DOMAIN=.sun.com; PATH=/
cdm: 1 2 3 4 5 6
Stored cookie .sun.com 80 / permanent 0 Wed Dec 31 18:59:59 2025
SUN_ID 12.220.85.89:160651029894326
Content-type: application/x-sh
Content-encoding: x-compress
Last-modified: Thu, 17 May 2001 23:01:18 GMT
Content-length: 5038
Accept-ranges: bytes
Connection: keep-alive
Found www.sun.com in host_name_addresses_map (55b28)
Registered fd 5 for persistent reuse.
Length: 5,038 [application/x-sh]
0% [ ] 0 --.--K/s ETA
--:--100%[========================================>] 5,038 39.36K/s
ETA 00:00
21:45:26 (39.36 KB/s) - `sidekick.sh.Z' saved [5038/5038]
Saving cookies to wget.cookies.
Done saving cookies.
/tmp: more wget.cookies
# HTTP cookie file.
# Generated by Wget on 2002-08-20 21:45:26.
# Edit at your own risk.
.sun.com:80 TRUE / FALSE 1767225599 SUN_ID 12.220.85.89:1606510
29894326
/tmp:
Comment 3•23 years ago
|
||
I can reproduce this on solaris using nightly 2002110822.
After agreeing to the license, there are two files available for download, a
.tar.Z and a .sh.Z file. Mozilla can download the .tar.Z file but not the .sh.Z
file. The urls for these files are identical save for the basename component,
and they're simple URLs; there are no obvious cookies or JS involved in actually
downloading the files. I have no trouble downloading the files using lynx with
the direct URLs.
I ran snoop while trying to download the file through mozilla. Mozilla follows
the 302 redirection and downloads the content from the redirected URL; it just
doesn't save it to the local destination file.
I suspect this has something to do with the file's MIME type. The file is
identified as application/x-sh. Maybe mozilla has some restriction on this mime
type or is simply mishandling it.
-> File handling
Assignee: Matti → law
Status: UNCONFIRMED → NEW
Component: Browser-General → File Handling
Ever confirmed: true
QA Contact: asa → petersen
Comment 4•23 years ago
|
||
These are the links from the download page, both in their original form, and
after redirection by the web server.
The behavior I'm seeing is that I can download sfpC-1.2.tar.Z using either of
the links. With sidekick.sh.Z, the browser goes through the motions of
downloading it (and a network trace confirms that it downloaded the content)
but the resulting local file is zero length. Note the second file has a MIME
type of "application/x-sh".
Comment 5•22 years ago
|
||
I just tested this again and I can't reproduce it. The .sh.Z links download
fine. I'm using build id 20030212 on solaris 8/sparc.
Hugh, could you test this with a recent version of mozilla and see if it's
working for you?
Reporter | ||
Comment 6•22 years ago
|
||
I just tested it again with my own build of 1.3b on Solaris 9/sparc
using Sun compiler on 20030208. Both files download OK.
I also tested with the downloaded 1.2.1 release for Solaris/sparc. Get zero
length file in that version.
![]() |
||
Comment 7•22 years ago
|
||
Ah, ok. This is a duplicate of a problem we had with .Z files specifically....
*** This bug has been marked as a duplicate of 162271 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•