Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#36883 closed defect (fixed)

Wrong MIME type for dmg files

Reported by: monkam-l@… Owned by: admin@…
Priority: Normal Milestone:
Component: server/hosting Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), monkam-l@…
Port:

Description

I am not able to download the leopard pkg I always get MacPorts-2.1.2-10.5-Leopard.man and not a .pkg file. How can I fix this would like to use it again. I don´t wont to use the source code method because there is a .pkg installer for OS X 10.5 according to the Mac Ports Download site Mac OS X Package (.pkg) Installer

The easiest way to install MacPorts on a Mac OS X system is by downloading the dmg for Mountain Lion, Lion, Snow Leopard or Leopard and running the system's Installer by double-clicking on the pkg contained therein, following the on-screen instructions until completion.

Installer for legacy platform Leopard also available.

link is below http://www.macports.org/install.php

thank you in advance

Change History (5)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsserver/hosting
Owner: changed from macports-tickets@… to admin@…
Summary: leopard pkqWrong MIME type for dmg files
Version: 2.1.2

It looks like the new distfiles server is presenting the wrong MIME type for .dmg files:

$ curl -I http://distfiles.macports.org/MacPorts/MacPorts-2.1.2-10.5-Leopard.dmg
HTTP/1.1 200 OK
Date: Sun, 04 Nov 2012 19:24:23 GMT
Server: Apache/2.2
Last-Modified: Wed, 25 Jul 2012 20:15:38 GMT
ETag: "c805e9-876e0-4c5ad24706314"
Accept-Ranges: bytes
Content-Length: 554720
Connection: close
Content-Type: application/x-troff-man
$ curl -I http://distfiles.macports.org/isightcapture/isightcapture1_1.dmg
HTTP/1.1 200 OK
Date: Sun, 04 Nov 2012 19:24:01 GMT
Server: Apache/2.2
Last-Modified: Wed, 05 Sep 2012 00:29:28 GMT
ETag: "c803c1-7d3d-4c8e977b9f0a2"
Accept-Ranges: bytes
Content-Length: 32061
Connection: close
Content-Type: text/plain; charset=UTF-8

That should be application/x-apple-diskimage or at least application/octet-stream, not application/x-troff-man or text/plain.

I guess no MIME type is configured for .dmg on the server so it defaults to text/plain. And for the MacPorts dmg, the ".1" portion of the filename is looking like a manpage suffix.

The server's default MIME type should be changed from text/plain to application/octet-stream and a MIME type for .dmg should be added as application/x-apple-diskimage.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

comment:3 Changed 12 years ago by monkam-l@…

Cc: monkam-l@… added

Cc Me! what does it mean sry I am a newbie

Last edited 12 years ago by monkam-l@… (previous) (diff)

comment:4 Changed 12 years ago by wsiegrist@…

Resolution: fixed
Status: newclosed

Fixed.

comment:5 in reply to:  3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to monkam-l@…:

Cc Me! what does it mean sry I am a newbie

It means I clicked the "CcMe!" button next to the Cc field at the top of this ticket. This causes my email address to be added to the Cc field of the ticket. This causes me to receive an email whenever anyone writes a comment in the ticket.

Because you are the reporter of the ticket, you automatically receive such emails, whether or not your email address is in the Cc field.

Note: See TracTickets for help on using tickets.