You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/03/24 11:42:05 UTC

DO NOT REPLY [Bug 18273] New: - Need complete environment in CGI

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18273>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18273

Need complete environment in CGI

           Summary: Need complete environment in CGI
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Servlets:CGI
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: leo.savernik@vai.at


CGIs are only called with certain environment variables set (meta-variables per
spec) like QUERY_STRING, HTTP_* when they are executed.

However, *none* of the system specific environment variables are passed on.
There are two ways to alleviate it. The workaround means to call a wrapper CGI
that sets up the system environment, and passes it to the real CGI. The "right
TM" solution is IMHO that tomcat provides the system environment itself.

My CGIs depend on some system variables like PATH to locate other exes/dlls. As
it is nearly impossible to obtain the correct PATH value if is has not been set
up in the first place, I decided to enhance the CGIServlet to pass on the system
environment to CGIs, too.

See the attached patch for a proposed implementation. This patch is created
against tomcat 4.1.18

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org