Date: Mon, 19 Dec 2016 19:22:34 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 215425] ports-mgmt/distilator: report when an URL gives a redirect Message-ID: <bug-215425-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215425 Bug ID: 215425 Summary: ports-mgmt/distilator: report when an URL gives a redirect Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ehaupt@FreeBSD.org Reporter: mat@FreeBSD.org Assignee: ehaupt@FreeBSD.org Flags: maintainer-feedback?(ehaupt@FreeBSD.org) Today I was reviewing a patch, and distilator reported: $ distilator . 200 [DISTFILE]=20 https://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.8.1.tar.gz 200 [WWW] http://dnscrypt.org 500 [DISTFILE]=20 https://www.dns-lab.com/downloads/dnscrypt-proxy/dnscrypt-proxy-1.8.1.tar.gz 200 [DISTFILE]=20 http://www.dns-lab.com/downloads/dnscrypt-proxy/dnscrypt-proxy-1.8.1.tar.gz It was right for the 500 on the third line, it is broken. But the fourth line, while true that it is 200 as it does end up getting the right file, it goes through a redirect: $ curl -IL http://www.dns-lab.com/downloads/dnscrypt-proxy/dnscrypt-proxy-1.8.1.tar.gz HTTP/1.1 301 Moved Permanently Date: Mon, 19 Dec 2016 19:19:52 GMT Server: Apache Location: http://dns-lab.com/downloads/dnscrypt-proxy/dnscrypt-proxy-1.8.1.tar.gz Content-Type: text/html; charset=3Diso-8859-1 HTTP/1.1 200 OK Date: Mon, 19 Dec 2016 19:19:52 GMT Server: Apache Last-Modified: Mon, 19 Dec 2016 17:49:15 GMT ETag: "189a9d-5440689be5cc0" Accept-Ranges: bytes Content-Length: 1612445 P3P: policyref=3D"/w3c/p3p.xml", CP=3D"OTI DSP COR LAW ADMa DEVa TAIi IVAi = IVD HISa OUR STP UNI" X-Robots-Tag: noarchive Content-Type: application/x-gzip And as we prefer to get the right URL first, it would be nice if distilator could say something like: 301 [DISTFILE]=20 http://www.dns-lab.com/downloads/dnscrypt-proxy/dnscrypt-proxy-1.8.1.tar.gz -> http://dns-lab.com/downloads/dnscrypt-proxy/dnscrypt-proxy-1.8.1.tar.gz or something, to get people's attention :-) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215425-13>