Closed Bug 111470 Opened 23 years ago Closed 22 years ago

apolyton.net - Files served via "php" are not downloading.

Categories

(Tech Evangelism Graveyard :: English US, defect, P4)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: slimehoo, Assigned: doronr)

References

()

Details

(Whiteboard: [HTTP] aok)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.6) Gecko/20011120
BuildID:    2001112009

I tried downloading some files from the popular "Apolyton" Civilization site,
and none of them worked.  If you will notice, the first message in the thread
URL posted above has a link to a file called "earth [real - terrain].zip".  When
I click this link, Mozilla instead downloads a file called "attachment.php".  No
matter where I go in this message board and no matter what download links I try,
this is always the only thing that happens.


Reproducible: Always
Steps to Reproduce:
1. Go to link above.
2. Click on file download link.



Actual Results:  Described above.

Expected Results:  The "php" request should have been processed and the file in
question downloaded.
Evangelism.  The site uses the following header:

Content-disposition: filename=earth [real - terrain].zip

This is invalid; it should contain the actual disposition, so something like:

Content-Disposition: attachment; filename=earth [real - terrain].zip
Assignee: pchen → bclary
Status: UNCONFIRMED → NEW
Component: XP Apps → English: US
Ever confirmed: true
Product: Browser → Tech Evangelism
QA Contact: sairuh → zach
Version: other → unspecified
OS: Windows 98 → All
Priority: -- → P4
Hardware: PC → All
Summary: Files served via "php" are not downloading. → apolyton.net - Files served via "php" are not downloading.
Whiteboard: [HTTP]
Whiteboard: [HTTP] → [HTTP] aok
Mass reassign of all tech-evangelism us general bugs assigned to bc to 
doron except bc's P1 bugs. You may search for this mass reassign (it is 
305 bugs) by searching for the keyword 'greeneggsandham'
Assignee: bclary → doronr
Sorry, couldn't follow the link to file served by php. I'm useing a nightly
Mozilla {Build ID:2002050113} Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.0rc2)
Gecko/20020501.
On other pages like 

http://www.ph-ii.com/?p=fdb/search&pl=%7Ec&typ=Text

sometimes it helps to rename the download.html.php to download.html. Then you
can watch it in Mozilla.
I have found the same bug in Mozilla, build ID 2002070908. The following link:
https://goturbo.safeserver.com/process/file2031.php?ON=2205150211-912715 is
supposed to download an update to a program I have purchased. However, Mozilla
constantly brings up the 'What should I do with this file?' dialog. Which should
be OK, but when you go to save it, the file name is ic4u.exe.php and is only 1
kb in size, not the 1.39 MB is should be. Opening the same link in IE works fine.

PS not that I dowwloaded the file(with IE6), I can't access the link anymore.
(using Phoenix 0.5 on Win2000)

I'm able to download the initial example but the file is misnamed,
"earth256.zip.php".  I'm having this problem with other sites using PHP, too. 
(Sorry, I can't post the URL; it's a private site and I'm not giving you my
password! :-)  The PHP code, however, I can try to demonstrate.  The code for
the download HTML says:
----------------------------------------------
echo "        <a href=\"index.php?action=downloadfile&filename=$filename\">
----------------------------------------------

Is this an issue with PHP, or with the web-site?  I'm not sure who the
evangelism is being directed at.  If it's a PHP problem, it's a common one and
it would be incredibly helpful if someone could document (here in this bug?)
what the issue is.

Also, the issue is not specific to .ZIP files.  I'm having the problem with
several types of attachments.

Finally, since this is the oldest bug I've been able find (by searching for
"php"), I'm going to suggest that the later bugs dupe this one.  If there's an
older-still bug, please dupe this to it!  And, if this bug is the oldest, it
should have a better (more generic) description, e.g. "downloads via PHP gain
extra .PHP extension"
"it would be incredibly helpful if someone could document what the issue is."

sorry, I forgot there was already the reference to content-headers.  But is that
a function of PHP or the web-server s/w?
This bug, as originally reported, is fixed (we changed the parsing of that
header in Mozilla). Comment 5 is bug 65827   	
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.