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

Bug 317393

Summary: would be nice if md5 and sha1 checksums delivered consistently, as text/plain
Product: Community Reporter: David Williams <david_williams>
Component: ServersAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description David Williams CLA 2010-06-20 21:48:10 EDT
The new md5 are sha1 links on mirrors page work fine, as expected (those are delivered via some php scripts and apparently have correct "content type" in response header). [thanks for those ... can't say I use them much ... but should ... so nice to have a reminder there]

I recently added md5 and sha1 links to webtools downloads. In these cases, they are relative links to files (not something through php script). Such as, see 
http://build.eclipse.org/webtools/committers/wtp-R3.2.1-M/20100620172618/M-3.2.1-20100620172618/

These (at least sha1) are being interpreted as "zip files", presumably because .zip is in the name ... even though not the extension, such as 
http://build.eclipse.org/webtools/committers/wtp-R3.2.1-M/20100620172618/M-3.2.1-20100620172618/checksum/wtp-M-3.2.1-20100620172618.zip.sha1

The md5 case sometimes work correctly, such as on build server, but not on downloads page. 

I checked the apache site, and seems their checksums are always delivered as text/plain, such as see links on 
http://httpd.apache.org/download.cgi
especially the ones with .zip in their name. 
Win32 Source: httpd-2.2.15-win32-src-r2.zip [PGP] [MD5] [SHA1] 

I don't know enough to say exactly how to configure the web servers, but know it might also involve "un configuring" some definition for zips. I seem to recall we used to have a similar problem with files that had ".php" or ".jar" in their name (but not the actually extension or type). 

No huge problem ... just seems it'd be better to be consistent for all checksum types, and consistent from build server to download server.
Comment 1 Denis Roy CLA 2010-06-23 16:14:53 EDT
This is exactly the same symptom as the .php kerfuffle.  A bad Apache default regexp.
Comment 2 Denis Roy CLA 2010-07-12 14:12:53 EDT
Agreed.  In /etc/apache2/mod_mime-defaults.conf I've added:

AddType text/plain .md5 .sha1
Comment 3 David Williams CLA 2010-07-12 14:43:18 EDT
(In reply to comment #2)
> Agreed.  In /etc/apache2/mod_mime-defaults.conf I've added:
> 
> AddType text/plain .md5 .sha1

Sweet. 

How about on build.eclipse.org also? That's still handling as 'zip' file (at least for sha1) so I assume that's a different web server?
Comment 4 Denis Roy CLA 2010-07-12 14:44:19 EDT
Consider it done.