Closed
Bug 38898
Opened 25 years ago
Closed 24 years ago
HTTP donwload via CGI script downloads an HTML page instead of the real program file (e.g. JRE1.3.exe)
Categories
(Core :: Networking, defect, P3)
Tracking
()
People
(Reporter: momoi, Assigned: don)
References
()
Details
** Observed with 5/10/2000 Win32 build **
This problem was initially reported by a Japanese NSPR1
user. But this problem still occurds with 5/10/2000 Win32 build.
1. Go to the above site. The choose to download Internationalized
version of JRE 1.3.
2. On the next page, "accept" the license terms.
3. On the next page, choose "Download" from java.sun.com
and click on "HTTP download" button.
4. Insetad of "j2re1_3_0-win-i.exe" file, you're offered to
download "Download3" file, which seems to be a parent page
to the form downloading page.
Additional info:
There is an option to download the file vi FTP protocol also
from the same sun.java.com site.
This option works OK.
Reporter | ||
Comment 1•25 years ago
|
||
Corrected the summary line.
I don't know if this is a generic failure of HHTP file downloding
procedure or particular to this site. We should investigate more.
If it is a general failure, we probably should nominate this
for nsbeta2.
Summary: HTTP donwload via CGI script downloads the CGI script instead of JRE1.3i → HTTP donwload via CGI script downloads an HTML page instead of the real program file (e.g. JRE1.3.exe)
Reporter | ||
Comment 2•25 years ago
|
||
The problem of "HTTP downloading" does not occur with
Communicator 4.7x. and I was able to download the
JRE file with it.
Comment 3•25 years ago
|
||
This bug is re-appeared by a simple CGI like below.
I tested BuildID:200051012 and NS6PR1.
----------------------
#!/usr/local/bin/perl
if( $ENV{'REQUEST_METHOD'} ne "POST" ) {
# here is for first load
print "Content-type: text/html\n\n" ;
print"<html><body><FORM ACTION=/download/download3 METHOD=POST><INPUT
TYPE=SUBMIT NAME=protocol VALUE=\"HTTP download\"></FORM></body></html>\n\n";
}
else {
# here is for second load
print "Content-disposition: attachment; filename=j2sdk1_3_0-win.exe\n" ;
print "Content-type: application/octet-stream; name=j2sdk1_3_0-win.exe\n\n" ;
print "dummy\n";
}
Comment 4•25 years ago
|
||
lacked information:
A simple CGI's name is download3.
It outputs html document calls itself by 1st load.
What does this have to do with necko? I think the problem is up in the browser
on how it's interpreting the content?
Actually the problem is that somebody doesn't handle Content-Dispostion header
upstream correctly. Reassigning back to browser
Assignee: ruslan → momoi
Reporter | ||
Comment 8•24 years ago
|
||
Juraj, this is the issue I was talking to you about.
Please look into the Content-Disposition header issue.
We need to know precisely what we are outputting to the server
and decide on the best course of action.
Assignee: momoi → jbetak
Reporter | ||
Comment 9•24 years ago
|
||
Two relevant RFCs are here:
http://www.cis.ohio-state.edu/htbin/rfc/rfc1867.html
http://www.cis.ohio-state.edu/htbin/rfc/rfc2388.html
Updated•24 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Comment 10•24 years ago
|
||
Ignore my 2 previous comments -- I confused this one
with another one,which has to do with form file uploading.
Assignee: jbetak → ftang
Status: ASSIGNED → NEW
Comment 11•24 years ago
|
||
1. momoi is our qa engineer, please do not reassign bug to him.
2. This is either a browser url dispatching issue or necko issue. Reassing to
don.
Assignee: ftang → don
Comment 12•24 years ago
|
||
dup of bug 22861?
Comment 13•24 years ago
|
||
Reporter | ||
Comment 14•24 years ago
|
||
Yes, this seems like a duplicate of Bug 22861, particularly
the part that has to do with URI loader & handling
Content-Disposition header correctly.
I'm going to resolve this bug as a duplicate but suggest
that we don't verify it until Bug 22861 is fixed.
Then we should try the test case suggested here. Let me mark the
dependency on Bug 22861 also.
*** This bug has been marked as a duplicate of 22861 ***
You need to log in
before you can comment on or make changes to this bug.
Description
•