NetBSD Problem Report #49765

From www@NetBSD.org  Fri Mar 20 10:49:02 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 64ECCA654B
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 20 Mar 2015 10:49:02 +0000 (UTC)
Message-Id: <20150320104901.319A5A65B0@mollari.NetBSD.org>
Date: Fri, 20 Mar 2015 10:49:01 +0000 (UTC)
From: jussi.e.toivonen@kapsi.fi
Reply-To: jussi.e.toivonen@kapsi.fi
To: gnats-bugs@NetBSD.org
Subject: Official ftp mirror not supporting wildcard over http
X-Send-Pr-Version: www-1.0

>Number:         49765
>Category:       misc
>Synopsis:       Official ftp mirror not supporting wildcard over http
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          closed
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 20 10:50:00 +0000 2015
>Closed-Date:    Tue Apr 14 23:35:02 +0000 2015
>Last-Modified:  Sun Apr 19 04:45:00 +0000 2015
>Originator:     Jussi Toivonen
>Release:        6.1.5
>Organization:
>Environment:
NetBSD Unzan 6.1.5 NetBSD 6.1.5 (GENERIC) i386
>Description:
Host not found errors when trying to install packages from ftp.NetBSD.org during installation step "Enable installation of binary packages" or during normal usage of pkg_add with PKG_PATH set to "http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/6.1.5/All". If the "http://" is explicitly replaced with "ftp://", installing works, but that is bad practice.

The problem seemingly stems from the wildcard character * not being supprted over http. The client attempts to find <package name>* where the * is the version number of the package, but can only find it if connected to the server through ftp://
>How-To-Repeat:
1. Boot the installation media for NetBSD 6.1.5 i386
2. Install as normal until
3. Attempt to enable installation of binary packages.

OR

# export PKG_PATH="http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/6.1.5/All"
# pkg_add <any program>
>Fix:
Enable wildcard globbing over http in the official ftp server.

>Release-Note:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: misc-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: misc/49765: Official ftp mirror not supporting wildcard over http
Date: Fri, 20 Mar 2015 12:57:05 +0100

 On Fri, Mar 20, 2015 at 10:50:00AM +0000, jussi.e.toivonen@kapsi.fi wrote:
 > Host not found errors when trying to install packages from ftp.NetBSD.org during installation step "Enable installation of binary packages" or during normal usage of pkg_add with PKG_PATH set to "http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/6.1.5/All". If the "http://" is explicitly replaced with "ftp://", installing works, but that is bad practice.

 Have you tried add a trailing /?

 Joerg

From: Jussi Toivonen <jussi.e.toivonen@kapsi.fi>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/49765: Official ftp mirror not supporting wildcard over
 http
Date: Fri, 20 Mar 2015 15:08:20 +0200

 This is a multi-part message in MIME format.
 --------------020305020808080003010700
 Content-Type: text/plain; charset=windows-1252; format=flowed
 Content-Transfer-Encoding: 7bit

 Alright. pkg_add works when I add the trailing slash.

 The default settings at OS installation for the binary packages still 
 don't though.

 Jussi

 On 03/20/2015 02:00 PM, Joerg Sonnenberger wrote:
 > The following reply was made to PR misc/49765; it has been noted by GNATS.
 >
 > From: Joerg Sonnenberger <joerg@britannica.bec.de>
 > To: gnats-bugs@NetBSD.org
 > Cc: misc-bug-people@netbsd.org, gnats-admin@netbsd.org,
 > 	netbsd-bugs@netbsd.org
 > Subject: Re: misc/49765: Official ftp mirror not supporting wildcard over http
 > Date: Fri, 20 Mar 2015 12:57:05 +0100
 >
 >   On Fri, Mar 20, 2015 at 10:50:00AM +0000, jussi.e.toivonen@kapsi.fi wrote:
 >   > Host not found errors when trying to install packages from ftp.NetBSD.org during installation step "Enable installation of binary packages" or during normal usage of pkg_add with PKG_PATH set to "http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/6.1.5/All". If the "http://" is explicitly replaced with "ftp://", installing works, but that is bad practice.
 >   
 >   Have you tried add a trailing /?
 >   
 >   Joerg
 >   


 --------------020305020808080003010700
 Content-Type: text/html; charset=windows-1252
 Content-Transfer-Encoding: 7bit

 <html>
   <head>
     <meta content="text/html; charset=windows-1252"
       http-equiv="Content-Type">
   </head>
   <body text="#000000" bgcolor="#FFFFFF">
     <font face="monospace">Alright. pkg_add works when I add the
       trailing slash.<br>
       <br>
       The default settings at OS installation for the binary packages
       still don't though.<br>
       <br>
       Jussi<br>
     </font><br>
     <div class="moz-cite-prefix"><font face="monospace">On 03/20/2015
         02:00 PM, Joerg Sonnenberger wrote:<br>
       </font></div>
     <blockquote cite="mid:20150320120000.B3C2DA6567@mollari.NetBSD.org"
       type="cite">
       <pre wrap="">The following reply was made to PR misc/49765; it has been noted by GNATS.

 From: Joerg Sonnenberger <a class="moz-txt-link-rfc2396E" href="mailto:joerg@britannica.bec.de">&lt;joerg@britannica.bec.de&gt;</a>
 To: <a class="moz-txt-link-abbreviated" href="mailto:gnats-bugs@NetBSD.org">gnats-bugs@NetBSD.org</a>
 Cc: <a class="moz-txt-link-abbreviated" href="mailto:misc-bug-people@netbsd.org">misc-bug-people@netbsd.org</a>, <a class="moz-txt-link-abbreviated" href="mailto:gnats-admin@netbsd.org">gnats-admin@netbsd.org</a>,
 	<a class="moz-txt-link-abbreviated" href="mailto:netbsd-bugs@netbsd.org">netbsd-bugs@netbsd.org</a>
 Subject: Re: misc/49765: Official ftp mirror not supporting wildcard over http
 Date: Fri, 20 Mar 2015 12:57:05 +0100

  On Fri, Mar 20, 2015 at 10:50:00AM +0000, <a class="moz-txt-link-abbreviated" href="mailto:jussi.e.toivonen@kapsi.fi">jussi.e.toivonen@kapsi.fi</a> wrote:
  &gt; Host not found errors when trying to install packages from <a class="moz-txt-link-abbreviated" href="ftp://ftp.NetBSD.org">ftp.NetBSD.org</a> during installation step "Enable installation of binary packages" or during normal usage of pkg_add with PKG_PATH set to <a class="moz-txt-link-rfc2396E" href="http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/6.1.5/All">"http://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/i386/6.1.5/All"</a>. If the <a class="moz-txt-link-rfc2396E" href="http://">"http://"</a> is explicitly replaced with <a class="moz-txt-link-rfc2396E" href="ftp://">"ftp://"</a>, installing works, but that is bad practice.

  Have you tried add a trailing /?

  Joerg

 </pre>
     </blockquote>
     <br>
   </body>
 </html>

 --------------020305020808080003010700--

From: "matthew green" <mrg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49765 CVS commit: src/libexec/httpd
Date: Fri, 20 Mar 2015 18:54:18 +0000

 Module Name:	src
 Committed By:	mrg
 Date:		Fri Mar 20 18:54:18 UTC 2015

 Modified Files:
 	src/libexec/httpd: bozohttpd.c

 Log Message:
 don't quote /.  it doesn't work.  this should fix PR#49765.


 To generate a diff of this commit:
 cvs rdiff -u -r1.61 -r1.62 src/libexec/httpd/bozohttpd.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: riz@NetBSD.org
State-Changed-When: Tue, 14 Apr 2015 23:35:02 +0000
State-Changed-Why:
This fix has been put in place on ftp.netbsd.org, and wildcard http works again.

Thanks!


From: "SAITOH Masanobu" <msaitoh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49765 CVS commit: [netbsd-7] src/libexec/httpd
Date: Sun, 19 Apr 2015 04:44:03 +0000

 Module Name:	src
 Committed By:	msaitoh
 Date:		Sun Apr 19 04:44:03 UTC 2015

 Modified Files:
 	src/libexec/httpd [netbsd-7]: CHANGES bozohttpd.8 bozohttpd.c

 Log Message:
 Pull up following revision(s) (requested by mrg in ticket #705):
 	libexec/httpd/CHANGES: revision 1.20
 	libexec/httpd/bozohttpd.8: revision 1.49
 	libexec/httpd/bozohttpd.c: revision 1.62-1.63
 don't quote /.  it doesn't work.  this should fix PR#49765.
 copyright maintenance, note shm@ in the manual and update the CHANGES
 for recent changes.  call this 20150320.


 To generate a diff of this commit:
 cvs rdiff -u -r1.19 -r1.19.2.1 src/libexec/httpd/CHANGES
 cvs rdiff -u -r1.46.4.1 -r1.46.4.2 src/libexec/httpd/bozohttpd.8
 cvs rdiff -u -r1.56.2.2 -r1.56.2.3 src/libexec/httpd/bozohttpd.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.