From: Matt S. (JIRA) <ji...@co...> - 2007-09-25 05:09:14
|
[ http://jira.codehaus.org/browse/JETTY-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_108191 ] Matt Sheppard commented on JETTY-259: ------------------------------------- Now that I think of it, it might also be preferable not to overwrite the value of SystemRoot is if was specifically set in the lines above. > SystemRoot evnironment not set under CGI > ---------------------------------------- > > Key: JETTY-259 > URL: http://jira.codehaus.org/browse/JETTY-259 > Project: Jetty > Issue Type: Improvement > Affects Versions: 6.1.2rc1 > Environment: Windows (Tested on Win2003 Standard Edition) > Reporter: Matt Sheppard > Assignee: David Yu > Priority: Minor > Fix For: 6.1.6rc0, 6.1.6rc1, 6.1.6 > > Attachments: cgi-windows.patch > > > Currently Jetty's (6.1.2rc1) CGI servlet does not appear to set the SystemRoot variable when running on Windows. This causes some odd problems, including what appear to be DNS errors. > For example, the following script, when run under the current CGI environement... > ------------- > #!/C:\Perl\bin\perl.exe > print `ping -n 1 www.funnelback.com`; > ------------- > Will produce the message... > ------------- > Ping request could not find host www.funnelback.com. Please check the name and try again. > ------------- > Whereas > ------------- > #!/C:\Perl\bin\perl.exe > print `set SystemRoot=C:\\WINDOWS&& ping -n 1 www.funnelback.com`; > ------------- > Will correctly produce ping output... > ------------- > Pinging funnelback.com [64.72.112.53] with 32 bytes of data: > Reply from 64.72.112.53: bytes=32 time=216ms TTL=128 > Ping statistics for 64.72.112.53: > Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), > Approximate round trip times in milli-seconds: > Minimum = 216ms, Maximum = 216ms, Average = 216ms > ------------- > I believe it would be best if the CGI servlet could pass through the SystemRoot environment varibale by default, though in the interim a workaround is to set it via the CGI servlet's init parameters as follows. > <Call name="setInitParameter"> > <Arg>ENV_SystemRoot</Arg> > <Arg>C:\WINDOWS</Arg> > </Call> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |