From chern@vision.osd.bsdi.com  Sat Apr 14 02:57:57 2001
Return-Path: <chern@vision.osd.bsdi.com>
Received: from vision.osd.bsdi.com (vision.osd.bsdi.com [204.216.28.164])
	by hub.freebsd.org (Postfix) with ESMTP id 09A2037B43E
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Apr 2001 02:57:57 -0700 (PDT)
	(envelope-from chern@vision.osd.bsdi.com)
Received: (from chern@localhost)
	by vision.osd.bsdi.com (8.11.1/8.9.3) id f3E9ulc79421;
	Sat, 14 Apr 2001 02:56:47 -0700 (PDT)
	(envelope-from chern)
Message-Id: <200104140956.f3E9ulc79421@vision.osd.bsdi.com>
Date: Sat, 14 Apr 2001 02:56:47 -0700 (PDT)
From: clee@serenivision.com
Reply-To: chern@serenivision.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: man.cgi fails to retrieve manpages with '.'
X-Send-Pr-Version: 3.2

>Number:         26566
>Category:       misc
>Synopsis:       man.cgi fails to retrieve manpages with '.'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 14 03:00:01 PDT 2001
>Closed-Date:    Sun Apr 15 12:22:21 PDT 2001
>Last-Modified:  Sun Apr 15 12:22:36 PDT 2001
>Originator:     Chern Lee
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
BSDi
>Environment:

	

>Description:

&man.sectionname.page in docbook/sgml converts to a hyperlink to
http://www.freebsd.org/cgi/man.cgi?sectionname(page) in HTML.

If sectionname has a period in it, man.cgi fails to retrieve the
manpage.  Normal queries to man.cgi through man.cgi?query=sectionname
works fine with '.'s.

See the named.conf(5) link in http://www.freebsd.org/handbook/dns.html for
an example.

>How-To-Repeat:

Try to get:
http://www.freebsd.org/cgi/man.cgi?named.conf(5)

>Fix:

Checked out www/en/cgi/man.cgi to attempt to fix problem, only to find:
#!/usr/bin/perl -T
# Copyright (c) Wolfram Schneider, Berlin. Sep 1997.
#
# FreeBSD man script
#
# $FreeBSD: www/en/cgi/man.cgi,v 1.5 2000/12/28 13:26:48 wosch Exp $

require '/usr/local/www/bsddoc/bin/man.cgi';

Drats.
>Release-Note:
>Audit-Trail:

From: Dima Dorfman <dima@unixfreak.org>
To: chern@serenivision.com
Cc: FreeBSD-gnats-submit@freebsd.org, nik@freebsd.org
Subject: Re: misc/26566: man.cgi fails to retrieve manpages with '.' 
Date: Sat, 14 Apr 2001 14:51:24 -0700

 clee@serenivision.com writes:
 > 
 > >Number:         26566
 > >Category:       misc
 > >Synopsis:       man.cgi fails to retrieve manpages with '.'
 > 
 > require '/usr/local/www/bsddoc/bin/man.cgi';
 
 That script is over 1000 lines with umpteen references to external
 sites and sources.  Not to mention that it's not in CVS.  I don't
 think you want to touch it. :-)
 
 That said, this is trivial to fix by making the stylesheets use the
 correct interface to man.cgi.  Patch attached below.
 
 Nik (cc'd), any objections to me checking this in?
 
 					Dima Dorfman
 					dima@unixfreak.org
 
 
 Index: freebsd.dsl
 ===================================================================
 RCS file: /st/src/FreeBSD/doc/en_US.ISO_8859-1/share/sgml/freebsd.dsl,v
 retrieving revision 1.6
 diff -u -r1.6 freebsd.dsl
 --- freebsd.dsl	2001/03/24 09:42:02	1.6
 +++ freebsd.dsl	2001/04/14 21:48:56
 @@ -53,11 +53,8 @@
  
          <!-- Specify how to generate the man page link HREF -->
          (define ($create-refentry-xref-link$ refentrytitle manvolnum)
 -          (string-append "http://www.FreeBSD.org/cgi/man.cgi?"
 -                          refentrytitle
 -                         "("
 -                         manvolnum
 -                         ")"))
 +	  (string-append "http://www.FreeBSD.org/cgi/man.cgi?query="
 +			 refentrytitle "&" "sektion=" manvolnum))
        ]]>
      </style-specification-body>
    </style-specification>

From: Nik Clayton <nik@freebsd.org>
To: Dima Dorfman <dima@unixfreak.org>
Cc: chern@serenivision.com, FreeBSD-gnats-submit@freebsd.org,
	nik@freebsd.org
Subject: Re: misc/26566: man.cgi fails to retrieve manpages with '.'
Date: Sun, 15 Apr 2001 02:43:44 +0100

 --r5Pyd7+fXNt84Ff3
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Sat, Apr 14, 2001 at 02:51:24PM -0700, Dima Dorfman wrote:
 > clee@serenivision.com writes:
 > >=20
 > > >Number:         26566
 > > >Category:       misc
 > > >Synopsis:       man.cgi fails to retrieve manpages with '.'
 > >=20
 > > require '/usr/local/www/bsddoc/bin/man.cgi';
 >=20
 > That script is over 1000 lines with umpteen references to external
 > sites and sources. =20
 
 Bug.
 
 > Not to mention that it's not in CVS.  I don't
 
 Ditto.
 
 > think you want to touch it. :-)
 
 Also true :-(
 
 > That said, this is trivial to fix by making the stylesheets use the
 > correct interface to man.cgi.  Patch attached below.
 >=20
 > Nik (cc'd), any objections to me checking this in?
 
 Nope, looks fine.  Can you send a heads up to the German translation
 team, who have a similar entry for German man pages.
 
 Thanks,
 
 N
 --=20
 FreeBSD: The Power to Serve             http://www.freebsd.org/
 FreeBSD Documentation Project           http://www.freebsd.org/docproj/
 
           --- 15B8 3FFC DDB4 34B0 AA5F  94B7 93A8 0764 2C37 E375 ---
 
 --r5Pyd7+fXNt84Ff3
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.4 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iEYEARECAAYFAjrY/LoACgkQk6gHZCw343VKXACeKOMb0QfmMsypbu5urQ1NF2l5
 KucAoIkUkirtv4Dvs8G/Y6dc/jDHUVYm
 =ZIAi
 -----END PGP SIGNATURE-----
 
 --r5Pyd7+fXNt84Ff3--
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Sun Apr 15 12:22:21 PDT 2001 
State-Changed-Why:  
Fixed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26566 
>Unformatted:
