Subject: misc/21611: man-cgi man page retreival problem from netbsd.org
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jcline@ieee.org>
List: netbsd-bugs
Date: 05/17/2003 21:09:30
>Number:         21611
>Category:       misc
>Synopsis:       man-cgi man page retreival problem from netbsd.org
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 17 21:10:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Cline
>Release:        n/a
>Organization:
>Environment:
n/a
(browser is ms ie 5.5)
>Description:
NetBSD man pages are available on the web through a 
cgi interface.  The man page for mkisofs does
not retreive through the web interface.  The man page
also does not retreive through the "freebsd interface
to the netbsd man pages" cgi-bin.  The interface allows
the choice between netbsd releases (i.e. 1.5.x pages, 
1.6.x pages, or -current pages).  None of these choices
allow the man page for mkisofs to retreive.

I believe this is due to whitespace somewhere in the
system (likely in the man page source).  Other commands
with man pages seem to retrieve fine.



>How-To-Repeat:
1. Go to any of these URLs.
  1. http://netbsd.gw.com/cgi-bin/man-cgi/man?+ANY+NetBSD-current
  2. 


2. enter 'mkisofs' in the box (use all other defaults; note i386)

3. press "show manual page" 

--> result:
man: no entry for mkisofs in the manual.

The manual page was not found. Try apropos or select a different architecture.

--


Now repeat, for the workaround.

1. Go to above URL #1.
2. Enter 'mkisofs '  (note space)
3. press "show manual page"

--> result:  man page is shown



--

Also note the difference in the resultant URLs.

 when not found:
http://netbsd.gw.com/cgi-bin/man-cgi?mkisofs++NetBSD-1.6A
 when correct page shown:
http://netbsd.gw.com/cgi-bin/man-cgi?mkisofs+++NetBSD-1.6A

These URLs should be the same, i.e. the cgi-bin should
strip off the whitespace on the form entry.  The fact that
the "workaround" works is a bug in itself.


>Fix:
Fix the man page ?

>Release-Note:
>Audit-Trail:
>Unformatted: