Bug 349033

Summary: File /srv/www/htdocs/info2html.css is missing from the distro.
Product: [openSUSE] openSUSE 10.3 Reporter: Carlos Robinson <carlos.e.r>
Component: OtherAssignee: Dr. Werner Fink <werner>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 10.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Carlos Robinson 2007-12-15 01:30:50 UTC
When browsing to <http://localhost/cgi-bin/info2html>, and clicking on any of the info pages, the following error appears:

] File IO Error
] The Info file could not be opened for reading. 

The file "/var/log/apache2/error_log" shows:

[Sat Dec 15 01:40:47 2007] [error] [client 127.0.0.1] , referer: http://localhost/cgi-bin/info2html
[Sat Dec 15 01:40:47 2007] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/info2html.css, referer:
http://localhost/cgi-bin/info2html?(enscript)Top


And it is true, file "/srv/www/htdocs/info2html.css" is missing from the entire distro; not even webpin finds it.

Another person confirms the same problem (see opensuse mail list)
Comment 1 Carlos Robinson 2007-12-16 23:20:20 UTC
The file 'info2html.css' is included in the sources rpm, it is missing in the binary rpm. Installing it doesn't solve the 1st error message, though, only the second one: there is a perl code error somewhere in the 'info2html':

$PROGRAM = $ENV{'SCRIPT_NAME'};

$CommandLine = DeEscape($ENV{'QUERY_STRING'});  # jonh DeEscape() 1997.05.16
if ($CommandLine =~ /\(([^\)]+)\)(.+)/) {
    $BaseInfoFile = &DeEscape($1);
    $NodeName     = &DeEscape($2);
    &DirnameCheck($BaseInfoFile) || &DieFileNotFound($BaseInfoFile);  <===
} elsif( $CommandLine =~ /^([-_0-9a-zA-Z]+)$/) {  # tolerate bare queries
    $BaseInfoFile = &DeEscape($1);
    $NodeName     = 'Top';
} else {
    $BaseInfoFile = 'dir';
    $NodeName     = 'Top';
}


The test that fails is the one marked "<===", but that is all I'm able to
trace - I don't know perl, after all.
Comment 2 Dr. Werner Fink 2007-12-17 10:28:59 UTC
Thanks for spotting ... the test build is running.
Comment 3 Dr. Werner Fink 2007-12-17 12:30:56 UTC
Fixed for next release of openSuSE, you may use within next few
days the version found in factory. Please compare the changlog
entry to be sure to have the newest version.