Community
Participate
Working Groups
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.
This is exactly the same symptom as the .php kerfuffle. A bad Apache default regexp.
Agreed. In /etc/apache2/mod_mime-defaults.conf I've added: AddType text/plain .md5 .sha1
(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?
Consider it done.