[Bug 215425] ports-mgmt/distilator: report when an URL gives a redirect

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 19 19:22:35 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215425

            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 at FreeBSD.org
          Reporter: mat at FreeBSD.org
          Assignee: ehaupt at FreeBSD.org
             Flags: maintainer-feedback?(ehaupt at FreeBSD.org)

Today I was reviewing a patch, and distilator reported:

$ distilator .
200 [DISTFILE] 
https://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.8.1.tar.gz
200 [WWW]       http://dnscrypt.org
500 [DISTFILE] 
https://www.dns-lab.com/downloads/dnscrypt-proxy/dnscrypt-proxy-1.8.1.tar.gz
200 [DISTFILE] 
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=iso-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="/w3c/p3p.xml", CP="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] 
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 :-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list