www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Haryanto <ste...@stud.che.itb.ac.id>
Subject mod_cgi/4498: Binary CGIs (paths) fails to execute from path with spaces (LFN)
Date Mon, 31 May 1999 10:30:53 GMT

>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:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon May 31 03:40:00 PDT 1999
>Last-Modified:
>Originator:     steven@stud.che.itb.ac.id
>Organization:
apache
>Release:        1.3.6
>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:

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> 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!     ]




Mime
View raw message