Opened 16 years ago

Closed 13 years ago

Last modified 13 years ago

#16237 closed enhancement (wontfix)

Don't follow redirects in fetch phase

Reported by: giorgio_v@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.6.0
Keywords: Cc:
Port:

Description

Here’s the scenario: I’m trying to fetch the latest postgresql update, but the first master site url (http://ftp8.us.postgresql.org/postgresql/) does not resolve. Since I’m using OpenDNS, the original request is redirected to a custom web page and that’s what curl downloads to the disk. Obviously, the checksum fails.

Maybe it could be sensibile to avoid redirects.

Change History (6)

comment:1 Changed 16 years ago by blb@…

Following redirects is also useful (eg, when using sourceforge's downloads.sourceforge.net redirector); DNS should be returning an NXDOMAIN for that hostname, but OpenDNS appears to point to hit-nxdomain.opendns.com instead.

comment:2 Changed 16 years ago by danielluke (Daniel J. Luke)

OpenDNS is cool, but breaks normal DNS behavior unless you configure it to not do it.

hit-nxdomain.opendns.com is returned instead of NXDOMAIN so that they can do the typo correction.

I don't think MacPorts should do anything special to help OpenDNS users.

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Right. I tried OpenDNS for about 5 minutes until I discovered that it was broken by design in this way.

comment:4 in reply to:  description Changed 16 years ago by giorgio_v@…

Replying to giorgio_v@mac.com:

Maybe it could be sensibile to avoid redirects.

I agree. I think it’s fair to close this ticket.

On the other hand, it could be useful to try next mirrored site if the checksum fails.

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Resolution: wontfix
Status: newclosed
Summary: Fetch phase with redirectsDon't follow redirects in fetch phase

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.