Received: (qmail 22452 invoked by uid 2012); 31 May 1999 10:30:53 -0000 Message-Id: <19990531103053.22451.qmail@hyperreal.org> Date: 31 May 1999 10:30:53 -0000 From: Steven Haryanto Reply-To: steven@stud.che.itb.ac.id To: apbugs@hyperreal.org Subject: Binary CGIs (paths) fails to execute from path with spaces (LFN) X-Send-Pr-Version: 3.2 >Number: 4498 >Category: mod_cgi >Synopsis: Binary CGIs (paths) fails to execute from path with spaces (LFN) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon May 31 03:40:00 PDT 1999 >Closed-Date: Mon Sep 03 13:09:36 PDT 2001 >Last-Modified: Mon Sep 03 13:09:36 PDT 2001 >Originator: steven@stud.che.itb.ac.id >Release: 1.3.6 >Organization: >Environment: Win98 Binary distribution (apache_1_3_6_win32.exe) Typical installation, default location >Description: I created this small Turbo Pascal 7 program: begin writeln('Content-type: text/plain');writeln;writeln('Hi) end. named it cgi1.pas, compiled it to cgi1.exe and put it in C:\Program Files\Apache Group\Apache\cgi-bin When executed as a CGI, the server responded with a 500 error. Error log: [Mon May 31 16:43:40 1999] [error] [client 127.0.0.1] Premature end of script headers: c:/program files/apache group/apache/cgi-bin/cgi1.exe Script log: %% [Mon May 31 16:43:40 1999] GET /cgi-bin/cgi1.exe HTTP/1.1 %% 500 c:/program files/apache group/apache/cgi-bin/cgi1.exe %request Accept: application/vnd.ms-excel, application/msword, */* Accept-Encoding: gzip, deflate Accept-Language: en-us Connection: Keep-Alive Host: localhost User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98) %response The problem disappears if I put cgi1.exe under some short, dos8.3-compatible path: in httpd.conf: ScriptAlias /cgi-bin2/ "c:/cgi-bin/" CGI scripts (e.g. perl scripts) work fine in all cases, even when I put perl in some LFN path like c:/perl directory/bin/perl.exe >How-To-Repeat: (described above) >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: wrowe State-Changed-When: Mon Sep 3 13:09:36 PDT 2001 State-Changed-Why: This bug was resolved some time ago. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]