Bugs / Problems Identified in OS2HTTPD v1.04


I've found two problems in the 1.04 version of OS2HTTPD, some of which were also in previous versions of the server:
  1. CGI subsystem does not pass pre-existing environment to the CGI processes. All of the CGI-specific environment variables are properly set, yet any environment variables in force at the time OS2HTTPD is started are not passed. This causes many problems here with special control variables which have to be hand crafted into the scripts, and cannot be modified for EXEs. This especially affects scripts/exe's which use the TZ variable, for instance, or variables used to denote locations of specific files.

    Frankie assures me that this is not a bug, but is the design of the server, intended to provide some level of security. I find it problematic in that hides the TCPIP environment variables from any other applications (SENDMAIL) I might be trying to run from a CGI script.

  2. ScriptAlias - alternative script directories cannot reside on a drive other than that which OS2HTTPD is running from. For instance, a server started from the E:/OS2HTTPD directory, but with an entry in SRM.CNF such as:
    
      ScriptAlias  /cgi-test/  p:/cgi-test/
    
    
    will return nothing, and cause an entry in the error log as follows:
    
      os2httpd: malformed header from script
    
    
    duplicating the directory as E:\CGI-TEST and changing the entry to:
    
      ScriptAlias  /cgi-test/  e:/cgi-test/
    
    
    which works fine.

    This bug is fixed by the current fix package: P_950307.


    Suggestions & additions to dlmeyer@uiuc.edu