[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: gunzip: subversion-1.4.0.tar.gz: unexpected end of file

From: Jeremy Pereira <jeremyp_at_jeremyp.net>
Date: 2006-10-20 15:33:53 CEST

On 19 Oct 2006, at 19:52, Ryan Schmidt wrote:

>
> On Oct 19, 2006, at 08:13, Jeremy Pereira wrote:
>
>> NB, when I downloaded the file it had an extra .tar extension.
>> i.e. it was called subversion-1.4.0.tar.gz.tar. Maybe this
>> confused your browser/downloader.
>
> This would happen if you download with the Safari web browser for
> Mac OS X, for example. The reason is that the web server is
> misconfigured. For the file http://subversion.tigris.org/downloads/
> subversion-1.4.0.tar.gz, the server sends the header "Content-Type:
> application/x-tar", but this is incorrect. The file is not a tar
> file; it is a gzip-compressed tar file. The correct content-type
> for this file is application/x-gzip.

I am indeed using Safari.

>
> Safari sees the application/x-tar content-type, sees that the
> filename does not end with the extension ".tar" which it knows tar
> files must end with, and "helpfully" adds the .tar extension.

This is ironic since, of all the popular desktop operating systems,
Mac OS X is the one that doesn't have to rely on extension to
determine the file type.

>
> The solution is to configure the web server properly to send the
> correct content-type. Should I report a bug in the www project on
> tigris.org for this?
>
> It would be nice if Safari would not add the .tar extension in this
> particular case (content-type application/x-tar but
> extension .tar.gz), and I will investigate the problem further and
> send a bug report to Apple.
>
>

It's not a bug though. The MIME type says it's a tar file so Safari
applies the tar extension. You can argue that correct behaviour is
not to change the file name at all (I probably would), but not that
something that claims to be a tar file should be flagged as a gzip file.

>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 20 15:44:03 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.