From nobody@FreeBSD.org  Fri Dec  5 07:41:33 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F2C251065670
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Dec 2008 07:41:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E17438FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Dec 2008 07:41:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mB57fXYR015252
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 5 Dec 2008 07:41:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id mB57fX0d015251;
	Fri, 5 Dec 2008 07:41:33 GMT
	(envelope-from nobody)
Message-Id: <200812050741.mB57fX0d015251@www.freebsd.org>
Date: Fri, 5 Dec 2008 07:41:33 GMT
From: David <datechy+bsd@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: freebsd-update fetch fails because phttpget fails proxy auth
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         129431
>Category:       bin
>Synopsis:       freebsd-update(8) fetch fails because phttpget fails proxy auth
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    cperciva
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 05 07:50:01 UTC 2008
>Closed-Date:    
>Last-Modified:  Wed Jul 11 20:10:03 UTC 2012
>Originator:     David
>Release:        7.0-RELEASE-p4
>Organization:
IWR
>Environment:
FreeBSD iwr38.iwr.ru.ac.za 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #0: Tue Sep  2 19:32:35 UTC 2008     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
phhtpget won't interpret an HTTP_PROXY env var that includes auth information
(which';fetch' needs) correctly.
It has to do this because ;fetch; won't fetch without this info, as 
trying to use HTTP_PROXY_AUTH instead doesn't work at all with fetch.

>How-To-Repeat:
so with
HTTP_PROXY=http://user:password@proxy.name.com:3128
phttpget (as used by FreeBSD7.0 freebsd-update) will return stuff 
like

Fetching 2 metadata patches...
/usr/libexec/phttpget update1.FreeBSD.org 7.0-
RELEASE/i386/tp/8864109089177efeb97a402c2cd78d3103ac04830298ab2cbad19e
46ff2248ea-
1d298c8caa51b44d66b6094ee7ee40aa1a4c0e3a985d4516853317d5bf72e0d1.gz 
7.0-
RELEASE/i386/tp/1ab7fdfcc9d634271cd180cc2c5cba28452833afb4e1686f7a5b8d
d2c9b99609-
216d13fca41a3a18fd4c0ab05c0623dce2a877d997feef3059dfff17310535c1.gz
phttpget: host = user, port = password@proxy.name.com:3128: servname 
not supported for ai_socktype
 done.

and will in fact try to install those patches without reporting an error.
>Fix:
none

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->cperciva 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 2 02:04:49 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer. 

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

From: "Normunds" <normunds@rule.lv>
To: bug-followup@FreeBSD.org,
 datechy+bsd@gmail.com,
 cperciva@FreeBSD.org
Cc:  
Subject: Re: bin/129431: freebsd-update(8) fetch fails because phttpget 
     fails proxy auth
Date: Fri, 5 Feb 2010 10:11:09 +0200 (EET)

 ------=_20100205101109_83065
 Content-Type: text/plain; charset="utf-8"
 Content-Transfer-Encoding: 8bit
 
 Hello,
 Probably this patch would help on
 HTTP_PROXY=http://user:pwd@proxy.example.com:8080 problem.
 
 Best regards,
 Normunds
 
 ------=_20100205101109_83065
 Content-Type: application/octet-stream; name="phttpget.patch"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename="phttpget.patch"
 
 LS0tIHVzci5zYmluL3BvcnRzbmFwL3BodHRwZ2V0L3BodHRwZ2V0LmMub3JpZwkyMDA5LTEwLTI5
 IDE2OjI3OjQ4LjAwMDAwMDAwMCArMDIwMAorKysgdXNyLnNiaW4vcG9ydHNuYXAvcGh0dHBnZXQv
 cGh0dHBnZXQuYwkyMDA5LTEwLTI5IDE3OjA1OjI2LjAwMDAwMDAwMCArMDIwMApAQCAtNDQsNyAr
 NDQsNyBAQAogI2luY2x1ZGUgPHN5c2V4aXRzLmg+CiAjaW5jbHVkZSA8dW5pc3RkLmg+CiAKLXN0
 YXRpYyBjb25zdCBjaGFyICoJZW52X0hUVFBfUFJPWFk7CitzdGF0aWMgY2hhciAqCQllbnZfSFRU
 UF9QUk9YWTsKIHN0YXRpYyBjaGFyICoJCWVudl9IVFRQX1BST1hZX0FVVEg7CiBzdGF0aWMgY29u
 c3QgY2hhciAqCWVudl9IVFRQX1VTRVJfQUdFTlQ7CiBzdGF0aWMgY2hhciAqCQllbnZfSFRUUF9U
 SU1FT1VUOwpAQCAtMTM2LDYgKzEzNiwxMSBAQAogCQlwID0gc3RyY2hyKGVudl9IVFRQX1BST1hZ
 LCAnLycpOwogCQlpZiAocCAhPSBOVUxMKQogCQkJKnAgPSAwOworCQlpZiAoc3RyY2hyKGVudl9I
 VFRQX1BST1hZLCAnQCcpKSB7CisJCQlwcm94eV9hdXRoX3VzZXIgPSBzdHJzZXAoJmVudl9IVFRQ
 X1BST1hZLCAiOiIpOworCQkJcHJveHlfYXV0aF9wYXNzID0gc3Ryc2VwKCZlbnZfSFRUUF9QUk9Y
 WSwgIkAiKTsKKwkJCXAgPSBzdHJjaHIoZW52X0hUVFBfUFJPWFksICdAJyk7CisJCX0KIAkJcCA9
 IHN0cmNocihlbnZfSFRUUF9QUk9YWSwgJzonKTsKIAkJaWYgKHAgIT0gTlVMTCkgewogCQkJKnAg
 PSAwOwo=
 ------=_20100205101109_83065--
 
 

From: Ted Henriksson <ted@henrikssons.net>
To: bug-followup@FreeBSD.org, datechy+bsd@gmail.com
Cc:  
Subject: Re: bin/129431: freebsd-update(8) fetch fails because phttpget fails
 proxy auth
Date: Wed, 11 Jul 2012 21:56:28 +0200

 This is a multi-part message in MIME format.
 --------------050703040103060001060603
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Hi
 
 I applied the submitted patch to phttpget and tested it on one of our 
 lab machines that runs
 FreeBSD 9.0-Release amd64 and sits behind a HTTP proxy with required 
 authentication.
 The patch worked without a problem.
 
 This patch would also solve misc/126131.
 
 //Ted Henriksson
 
 --------------050703040103060001060603
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 <html>
   <head>
 
     <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
   </head>
   <body bgcolor="#FFFFFF" text="#000000">
     Hi<br>
     <br>
     I applied the submitted patch to phttpget and tested it on one of
     our lab machines that runs<br>
     FreeBSD 9.0-Release amd64 and sits behind a HTTP proxy <span
       style="color: rgb(0, 0, 0); font-family: verdana, sans-serif;
       font-size: 11px; font-style: normal; font-variant: normal;
       font-weight: normal; letter-spacing: normal; line-height: normal;
       orphans: 2; text-align: left; text-indent: 0px; text-transform:
       none; white-space: normal; widows: 2; word-spacing: 0px;
       -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
       background-color: rgb(255, 255, 255); display: inline !important;
       float: none; "></span>with required authentication.<br>
     The patch worked without a problem.<br>
     <br>
     This patch would also solve misc/126131.<br>
     <br>
     //Ted Henriksson<br>
   </body>
 </html>
 
 --------------050703040103060001060603--
>Unformatted:
