From mi@privatelabs.com  Fri Jul 28 10:00:14 2000
Return-Path: <mi@privatelabs.com>
Received: from privatecube.privatelabs.com (privatecube.privatelabs.com [198.143.31.30])
	by hub.freebsd.org (Postfix) with ESMTP id BFDB737B5B8
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Jul 2000 10:00:03 -0700 (PDT)
	(envelope-from mi@privatelabs.com)
Received: from misha.privatelabs.com (misha.privatelabs.com [198.143.31.6])
	by privatecube.privatelabs.com (8.9.3/8.9.2) with ESMTP id LAA04004
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Jul 2000 11:59:30 -0400
Received: (from root@localhost)
	by misha.privatelabs.com (8.9.3/8.9.3) id MAA01429;
	Fri, 28 Jul 2000 12:57:23 -0400 (EDT)
	(envelope-from mi)
Message-Id: <200007281657.MAA01429@misha.privatelabs.com>
Date: Fri, 28 Jul 2000 12:57:23 -0400 (EDT)
From: Mikhail Teterin <mi@privatelabs.com>
Reply-To: mi@aldan.algebra.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: fetch(1) confused when redirected from http to ftp
X-Send-Pr-Version: 3.2

>Number:         20259
>Category:       bin
>Synopsis:       fetch(1) confused when redirected from http to ftp
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 28 10:10:01 PDT 2000
>Closed-Date:    Tue Dec 18 01:53:27 PST 2001
>Last-Modified:  Tue Dec 18 01:53:28 PST 2001
>Originator:     Mikhail Teterin
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

>Description:

	mi@misha:~/ports/distfiles (134) fetch -v http://dev.scriptics.com/download/tcl/tcl8_4/tcl8.4a1.tar.gz
	looking up dev.scriptics.com
	connecting to dev.scriptics.com:80
	requesting http://dev.scriptics.com:80/download/tcl/tcl8_4/tcl8.4a1.tar.gz
	302 redirect to ftp://ftp.scriptics.com/pub/tcl/tcl8_4/tcl8.4a1.tar.gz
	fetch: tcl8.4a1.tar.gz: 
	mi@misha:~/ports/distfiles (135)

>How-To-Repeat:

	Try the line above. The Scriptics web server redirects to the
	ftp site and fetch just exits at that point. If you know to
	run fetch with ``-v'', you'll see this, but without ``-v'' it
	leaves you clueless :(

>Fix:

	Run with ``-v'' and re-fetch the correct URL explicitly.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: des 
Responsible-Changed-When: Fri Jul 28 15:13:20 PDT 2000 
Responsible-Changed-Why:  
fetch(1) is mine. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20259 

From: Dag-Erling Smorgrav <des@flood.ping.uio.no>
To: mi@aldan.algebra.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/20259: fetch(1) confused when redirected from http to ftp
Date: 29 Jul 2000 00:15:17 +0200

 This has always been a problem with fetch(1). Not many sites currently
 redirect to FTP URLs, but it *is* permissible behaviour for an HTTP
 server, and libfetch should handle it properly. I'll see what can be
 done about it.
 
 DES
 -- 
 Dag-Erling Smorgrav - des@flood.ping.uio.no
 
State-Changed-From-To: open->suspended 
State-Changed-By: des 
State-Changed-When: Tue Nov 27 05:36:47 PST 2001 
State-Changed-Why:  
This is still a problem, but I haven't had time to address it and probably 
won't for quite a while. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=20259 
State-Changed-From-To: suspended->feedback 
State-Changed-By: des 
State-Changed-When: Mon Dec 3 17:13:15 PST 2001 
State-Changed-Why:  
Fixed in -CURRENT, awaiting MFC. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=20259 
State-Changed-From-To: feedback->closed 
State-Changed-By: des 
State-Changed-When: Tue Dec 18 01:53:27 PST 2001 
State-Changed-Why:  
MFCed, thanks! 

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