Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 176888

Summary: Webserver MIME config error, files ending .zip.md5 incorrectly think they are ZIPs
Product: Community Reporter: Darryl Miles <darryl>
Component: ServersAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Darryl Miles CLA 2007-03-10 05:45:14 EST
Build ID: Eclipse.org Website

Steps To Reproduce:

This line of the response is incorrect:
 Content-Type: application/zip

A better suggestion would be text/plain which would allow users of Mozilla to view the contents within the browser (rather then be offered to open with the ZIP archive opener, which then complains with an error due to it being a corrupt ZIP file).



$ wget -d -v http://download.eclipse.org/webtools/downloads/drops/R1.5/R-1.5.3-200702082048/checksum/wtp-all-in-one-sdk-R-1.5.3-win32.zip.md5
Setting --verbose (verbose) to 1
DEBUG output created by Wget 1.10.2 (Red Hat modified) on linux-gnu.

--10:33:49--  http://download.eclipse.org/webtools/downloads/drops/R1.5/R-1.5.3-200702082048/checksum/wtp-all-in-one-sdk-R-1.5.3-win32.zip.md5
           => `wtp-all-in-one-sdk-R-1.5.3-win32.zip.md5'
Resolving download.eclipse.org... 206.191.52.47
Caching download.eclipse.org => 206.191.52.47
Connecting to download.eclipse.org|206.191.52.47|:80... connected.
Created socket 3.
Releasing 0x000000000063d8e0 (new refcount 1).

---request begin---
GET /webtools/downloads/drops/R1.5/R-1.5.3-200702082048/checksum/wtp-all-in-one-sdk-R-1.5.3-win32.zip.md5 HTTP/1.0
User-Agent: Wget/1.10.2 (Red Hat modified)
Accept: */*
Host: download.eclipse.org
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Date: Sat, 10 Mar 2007 10:33:49 GMT
Server: Apache
Last-Modified: Thu, 22 Feb 2007 05:59:37 GMT
ETag: "ee274-47-42a0a61482440"
Accept-Ranges: bytes
Content-Length: 71
Connection: close
Content-Type: application/zip

---response end---
200 OK
Length: 71 [application/zip]

100%[==========================================================================================================================================>] 71            --.--K/s

Closed fd 3
10:33:49 (6.77 MB/s) - `wtp-all-in-one-sdk-R-1.5.3-win32.zip.md5' saved [71/71]



More information:
Comment 1 Darryl Miles CLA 2007-03-10 07:34:18 EST
There are other similar places where a bad MIME type selection is given out by the website server:

http://download.eclipse.org/tools/ve/downloads/drops/R-1.2.3_jem-200701301117/compilelogs/plugins/org.eclipse.jem.util_1.2.1.v20060918_M/@dot.bin.log

Wants to be applicaiton/octet-stream when test/plain would be better for *.log
Comment 2 Denis Roy CLA 2007-03-10 10:16:32 EST
This is exactly the same problem we had with .php.jar files in bug 148879, so whatever we did to fix that one, we need to repeat for .zip.md5.

The default Apache configs use the equivalent of a simple .zip regexp instead of a better .zip$ which would prevent this from happening in the first place.
Comment 3 Denis Roy CLA 2007-03-10 10:19:04 EST
(In reply to comment #2)
Note to self -- unlike with bug 148879 we won't need to ping our mirror sites to update their mime types - md5 checksums should only be fetched from download.eclipse.org.
Comment 4 Denis Roy CLA 2007-03-10 10:20:09 EST
Moving to Apache
Comment 5 Darryl Miles CLA 2007-03-10 12:50:24 EST
(In reply to comment #1)
> Wants to be applicaiton/octet-stream when test/plain would be better for *.log
                                            ^^^^^^^^^^

That typo wants to be "text/plain".
Comment 6 Denis Roy CLA 2007-03-12 09:13:59 EDT
I've updated our mime-types, and below is the new mime-type for *.md5 files.  It will take some time for this to replicate to the entire cluster, but by tomorrow all should be well.  Thanks for reporting this.



---request begin---
GET /webtools/downloads/drops/R1.5/R-1.5.3-200702082048/checksum/wtp-all-in-one-sdk-R-1.5.3-win32.zip.md5 HTTP/1.0
User-Agent: Wget/1.10.2
Accept: */*
Host: download.eclipse.org
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Date: Mon, 12 Mar 2007 13:04:20 GMT
Server: Apache
Last-Modified: Thu, 22 Feb 2007 05:59:37 GMT
ETag: "d21d6-47-42a0a61482440"
Accept-Ranges: bytes
Content-Length: 71
Connection: close
Content-Type: text/plain; charset=ISO-8859-1
X-Pad: avoid browser bug

---response end---
200 OK
Length: 71 [text/plain]


Comment 7 Denis Roy CLA 2009-05-07 16:18:00 EDT
Moving all these to Servers.