From owner-freebsd-ports-bugs@freebsd.org Mon Dec 19 19:22:35 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44C11C88B65 for ; Mon, 19 Dec 2016 19:22:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1BB591838 for ; Mon, 19 Dec 2016 19:22:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uBJJMYot082146 for ; Mon, 19 Dec 2016 19:22:34 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 215425] ports-mgmt/distilator: report when an URL gives a redirect Date: Mon, 19 Dec 2016 19:22:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mat@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ehaupt@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 19:22:35 -0000 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.=