From nobody@FreeBSD.org  Sun Oct 21 11:16:20 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 150E137B405
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Oct 2001 11:16:20 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f9LIGKl57641;
	Sun, 21 Oct 2001 11:16:20 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200110211816.f9LIGKl57641@freefall.freebsd.org>
Date: Sun, 21 Oct 2001 11:16:20 -0700 (PDT)
From: Mike Heffner <mikeh@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: distfile checker is broken for 302 responses
X-Send-Pr-Version: www-1.0

>Number:         31401
>Category:       ports
>Synopsis:       distfile checker is broken for 302 responses
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    fenner
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 21 11:20:01 PDT 2001
>Closed-Date:    Sun Oct 21 13:27:11 PDT 2001
>Last-Modified:  Sun Oct 21 13:28:02 PDT 2001
>Originator:     Mike Heffner
>Release:        N/A
>Organization:
>Environment:
N/A
>Description:
The distfile survey checker of Bill Fenner will report URLs that return
a 302 response as broken. However, according to:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.3
a 302 is a redirection to a temporary URI, and requests should still be
made with the requested URI.
>How-To-Repeat:
Note that:
http://people.freebsd.org/~fenner/portsurvey/mail.html#xfmail
reports the package website as being 'unfetchable' on account of a
302 response, but that http://www.xfmail.org is very much reachable.
>Fix:
I'm not familiar with the distfile checker scripts, but ignoring 302
responses would probably be the best fix.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->fenner 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Sun Oct 21 12:39:57 PDT 2001 
Responsible-Changed-Why:  

The distfile checker is Bill's project. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31401 
State-Changed-From-To: open->analyzed 
State-Changed-By: fenner 
State-Changed-When: Sun Oct 21 12:56:44 PDT 2001 
State-Changed-Why:  
2 reasons for this: 
1. The "Location:" header in the response that www.xfmail.org gives 
is malformed; it is required to be an absolute URI but it supplies 
a relative one. 

2. The ports makefiles supply "-A" to "fetch", causing it to not follow 
302 redirections.  Since "fetch" won't follow them, it'd be silly 
for the distfile survey to do so. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31401 

From: Bill Fenner <fenner@research.att.com>
To: mikeh@freebsd.org, freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: ports/31401: distfile checker is broken for 302 responses
Date: Sun, 21 Oct 2001 13:17:00 -0700

 I take it back.  The distfile survey only doesn't follow 302
 responses when it's trying to fetch a distfile, but is willing
 to follow them when it's fetching a home page.  The only problem
 is #1, that the web server in question is returning a malformed
 Location: header.  I will see if I can come up with a hack to
 allow following relative Location:s.
 
   Bill
State-Changed-From-To: analyzed->closed 
State-Changed-By: fenner 
State-Changed-When: Sun Oct 21 13:27:11 PDT 2001 
State-Changed-Why:  
Fixed distfile checker to handle bogus 302 responses. 
The next update should fix www.xfmail.org. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31401 
>Unformatted:
